Game Development Community

Image map size suggestions for animations?

by Michael Goins · in Torque Game Builder · 08/21/2006 (11:19 pm) · 1 replies

This is for a side-scrolling brawler/fighter-type game, so the player character has quite a few frames of animations; attacks, reactions, movements.. all kinds of fun stuff.

Are there performance and/or maintenance issues to be wary of when dealing with large numbers of animation frames? I'm looking at something possibly in the 200-300 range for a character (not all of 'em, just the player). I'm not sure if that should all be in one huge image map, then cell'd and stitched together in the animation builder, or whether I should be looking at having a "movement" image map, an "attack" (or attack1...N) image map, et cetera.

#1
08/24/2006 (1:24 am)
Since torque loads the images ahead of time there shouldn't be a difference. The only advantage I can think of for having a "movement" or "attack" image map was if you wanted to add some dynamic fields to the datablocks (which, I should warn you, dynamic fields in datablocks are not variables. They are constants.) But its kind of unlikely you are planning on doing this. So the direct answere is no.

-Peter