I'm working on the Spooky Heroes project :
I didn't pay too much attention to memory use since the game is aimed at PC and images are not that big.
However, I reached a point where the game does not work anymore because of this and I can't figure out how to correct it. I posted in the bugs section and Ashley pointed out the problem came from the memory use :
I searched for a solution but I'm lacking knowledge as to how C2 actually works with images and sprites.
Let me explain :
I wish to offer many kind of heroes as well as many kind of bosses to fight against. And the game is animated which means a lot of frames and sprites. I created all animations with Flash and exported them to PNG.
When I check the folder size for the boss number 2 for example, all frames and animations included to this character, Windows indicate me a size of ~8Mo.
When I import them in C2 and place the instance on a loader layout, the memory usage indicates 130Mo used !
So I read articles and about the need for sprites to be a power of 2 (128x128) but even so, it seems a ridiculous amount of change between the 2 values !
The boss 2 is ~200x520 in size which means if it becomes power of 2, it will use 1024x1024 in memory ? Is that correct ? Does it change the size for the whole animation ? the whole sprite ? if one frame change to 1100x1100 for any reasons, will it make 2048x2048 for the whole sprite or only this frame ? Or this power 2 rule only concerns tiled backgrounds ?
When the games loads on launch, it can't loads everything because of t0o much memory use and display black squares instead of the actual sprites.
For the moment a normal character on windows indicates a 2Mo size but in C2, it indicates 15Mo. I have 13 normal characters...
Right now, the memory used on the preload page is 550Mo in total (with backgrounds and all)... Even if I optimize all of them, I will still need more of them and the size will still be a lot. I fear that I won't be able to implement everything I want for this game because the memory use on first laod will be too high.
Could you give me more information about all this stuff because I'm guessing I'm mixing up things and it's quite confusing.
How to make this work ?