I'm wondering what the best way to animate a sprite is. Is there a basic example or tutorial out there somewhere?
I have ten images in a spritesheet that are part of an idling animation, and I made a texture for each of the images. I put the textures in an array, and my plan is to just change the texture of my sprite each frame in the gameloop, looping through the array of textures over and over again. Maybe using Sprite.setTexture ???
Is that a good way to go about it? Any links to info or tutorials would be much appreciated.
Thanks,