Animating isometric sprites

Posted by Mike on Game Development See other posts from Game Development or by Mike
Published on 2012-06-07T19:13:17Z Indexed on 2012/06/07 22:48 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

I'm having trouble coming up with a way to animate these 2D isometric sprites. The sprites are stored like this:

< Game Folder Root >/Assets/Sprites/< Sprite Name >/< Sprite Animation >/< Sprite Direction >/< Frame Number >.png

So for example,

/Assets/Sprites/Worker/Stand/North-East/01.png

Sprite sheets aren't really viable for this type of animation. The example stand animation is 61 frames. 61 frames for all 8 directions alone is huge, but there's more then just a standing animation for each sprite. Creating an sf::Texture for every image and every frame seems like it will take up a lot of memory and be hard to keep track of that many images. Unloading the image and loading the next one every single frame seems like it will do a lot of unnecessary work. What's the best way to handle this?

© Game Development or respective owner

Related posts about c++

Related posts about animation