I've got several frames for one sprite and want to make an animation. The problem is not the animation but the timing. Every frame of the sprite should be displayed several frames in the game. So one frame of the sprite should last for say 5ms. I could implement some kind of frame counter and shift the sprite frame every 5 frames of the game but I think there should be a better way or is this the way to go?
Or is there even a nice sprite engine that could do this for me?
Or is there even a nice sprite engine that could do this for me?