Animating isometric sprites
- by Mike
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?