For example, say there is a character in a game with 3 frames for a walking animation (frame 1: left leg forward, frame 2: both legs side by side, frame 3: right leg forward). So it would make sense to simply loop the animation while in the ‘walking state’. The problem is, at the end, the animation will go from frame 3 (right leg forward), back to frame 1 (left leg forward), when it should go back to frame 2, then frame 1. IE,
Should be:         
Not:         
I easily solved it by simply copying frame 2 (legs side by side), and pasting it as frame 4. So the animation goes 1-2-3-4-1-2-3-4, and its ok because frame 4 is the same as frame 2. But the downside is that it uses an extra frame on my sprite sheet, which I’d prefer not to waste.
So, assuming I just want to use 3 frames, is there a way to ‘reverse’ the animation when it reaches the end, instead of looping back to the first frame? (Hopefully I explained clearly enough)