stop(name, resetFrame)
Stop playback of an animation. If a name is given that specific animation is stopped, otherwise the current animation is stopped.
The currentAnim property of the AnimationManager is automatically set to the animation given.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
name | string | <optional> | null | The name of the animation to be stopped, e.g. "fire". If none is given the currently running animation is stopped. |
resetFrame | boolean | <optional> | false | When the animation is stopped should the currentFrame be set to the first frame of the animation (true) or paused on the last frame displayed (false) |
- Source code: animation/AnimationManager.js (Line 296)
Please login to continue.