. Well, as I said in the first posts, everything works, I'm just trying to optimize stuff. And my variables are so big and heavy that my computer is sinking in the floor...You're still really not explaining what you want to happen. You're just saying "There is big variables! AND LITTLE Ones! AND BIGGER LITTLER ONES! AND NONE OF IT WORKS!!! AHH!!!!"...
But you know, its just that its hard to explain, it's just that I allocate a quantity of memory that is different for my objects, and I know that using a void pointer, (or other), I can use NEW to prepare an area of memory for any object, depending on what it needs, and then just by knowing the type Id of that object, I can call a function pointer to which I pass the address to the area of memory that objects occupy, but I can't sum it all for everything, because I want to use as less memory as possible, and I know that I could use for everything, the same mount of memory, which would make it simpler, but that's not what I'm looking for.
I think making a game's hard, and I would like to let you think about how would you do it if you had many kind of stuff to handle. Just understand this: a game can have many kind of objects, can be items, can be enemies, etc... so the objects variables will not always be the same... But I don't even use derivates and stuffs, because I don't plan in trying to learn that yet...
If there's more about "still not explaining what you want to do" well I can't really go farther and hand out my whole code like that... Just start playing games and help me figure out how they're done...
Yeah, that's what I want to know, but its also about optimization, not changing language over and over, unless I decide to create one! But then why should I create some language of mine?Regardless of whether he should do it or not, the question he posed is "how can I do it?".