Run animation of sprite one time

Is it possible to run a sprint animation for a specific number of loops instead of looping forever?

3 Likes

Yup, it’s possible! I made a walkthrough video for you: Animation Loop Limiting | GDevelop 5 Tutorial - YouTube

1 Like

Cool video thanks.
Please also share the behavior

The scene download can be found in the description of the youtube video, Releases · j-c-levin/limit_animation_loops · GitHub

1 Like

Thank again
I would add a line to set the animation to the first frame after stopping. :slight_smile:

Lovely contribution, I’ll update the scene. Thank you! :smile:

1 Like