I'm making a new game and now it's at 163 frames and not close to being finished. I read in a tip of the day that having less frames is good, but how many frames do you need for your game to lose performance?
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
13th July, 2005 at 06:13:57 -
It's not about losing performance, but about filesizes. Every new frame will make your file bigger.
If it's one of those games where you have one screen and you can go left or right, you'd better not do that with seperate frames but with a scrolling technique...
Old member (~2004-2007).
DaVince This fool just HAD to have a custom rating
The frame limit is about 30,000 I think. So you're not in any danger.
If your new frames use objects that exist in other frames, then it won't add to the file size that much - MMF pools identical objects across frames and only saves them once.
IMO the biggest problem with lots of frames is maintanence. If you find a bug with your movement engine... are you gonna replace the code in 163 frames??
163 sounds a lot but that depends on the game really. Say it is a Text adventure style game (interactive fiction), Each new screen could be a new frame. It's not very efficient but better than a Platform game.
A platform game with one non scrolling level per frame, people would get fed up way before getting to the 160th level unless it is very addictive.
Frames aren't a problem by themselves. The problem is if you use the same objects in them. Say you have this guy with about 4*(5 + 1 + 6 + 2) = 56 frames of animation. 5 for walking, one for stopped, 6 frames of shooting, 2 for falling and jumping, and times 4 for the 4 common directions.
So, assuming this guy would already take 2 KB (2 times if 16-bit, 4 times if 32-bit), a 32-bit character like this will take 326 KB if he's in 163 frames!
And that's just assuming an average main character. What about repeated interfaces, explosions, enemies, etc, etc?
You might not care too much about file size yet, but release an average game in 30 MB and the anti-noobs will slaughter you .
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.