I have a sprite animation that launches another image when it completes it’s animation sequence. It does this with a sprite listener.
I have a button that “turns off” the game. Included in this process is stopping the sprite animation from above (actually, it pauses since there is no stop) as follows:
animation:pause() animation:setFrame(1)
The problem is, when I turn the game back “on”, the sprite animation seems to have ended and still launches the other image instead of starting from the beginning and bypassing the steps in the sprite listener.
I have a setFrame(1) in the code above, but it still seems as if the sprite animation wants to finish where it left off.
Should I just let it finish the animation sequences with the elements hidden?
Or, is there a way to totally reset the sprite animation to the beginning?