How to stop after one loop

The timeline starts with frame 1 and stops.
When click start, it plays.
I want the animation to stop, once the ball reaches frame 19.
How to stop the animation.

1 Like

create a new layer. in that layer, create a new frame on frame 19. in the default script of that frame (frames have scripts), put stop();.

basically, this will just stop the animation on the 19th frame.

theres literaly a line of code thats stop()