Looping and non looping flipbooks

I have a really basic animation state machine that I’m trying to have toggle looping on or off depending on what flipbook I want to play. Some animations I want to loop, and some I don’t.

Here is my current failing method: http://puu.sh/eV8D7/7d1fd2c12d.png

What happens is after looping is turned off all flipbooks will only play the first frame and then stop even after looping has been turned back on. Without those SetLooping nodes everything works except flipbooks that I don’t want to loop keep looping like jump and crouch.

The issue is that when you turn off looping the animation will stop playing for the sprite. So after you re-enable looping you will need to call the “Play” method again to restart the animation.

Should look something like this: http://puu.sh/eWvkj/5209ffdcc5.png

1 Like

Thank you very much, this did the trick. Seems odd that turning looping off would cause it to stop playing.

i dont understand where i would implement this? on the main character?