On Next pressed
-> Sprite: Set frame to (self.animationframe+1)%self.Animationframecount
On Prev pressed
-> Sprite: Set frame to self.animationframe = 0 ? self.Animationframecount-1 : self.frame-1
The code above allows me to advance to the next animation frame and previous by frame number. But how can I do something like this, but advance to the next animation if all animations are numbered sequentially?
I want to create a character select screen that cycles through characters with a button on left for PREVIOUS and button on right for NEXT, but if I use animation frames then the characters are static. If I can use animations, then they can be animated (obviously).
Is this possible?