Stops the current animation from playing after the given number of repeats.
It then dispatches the ANIMATION_STOP
event.
If no animation is running, no events will be dispatched.
If there is another animation in the queue (set via the chain
method) then it will start playing,
when the current one stops.
name | type | arguments | Default | description |
---|---|---|---|---|
repeatCount | number | <optional> | 1 |
How many times should the animation repeat before stopping? |
This Game Object.