I have a menu that uses up & down arrows to change the animation frame. My current line of code is:
On Down Arrow >
Set animation frame to "(Sprite.AnimationFrame+1) %Sprite.AnimationFrameCount
This works perfectly, but with my up arrow event (same event as down, only -1), when the animation is at frame 0, how do I make it loop back to the last frame?
I've tried a sub-event of "If Sprite.Animation frame = 0", but then it actually SKIPS 0 and goes straight to the final frame.
Any help would be greatly appreciated.
Thanks,
Steve