AnimationManager#stop()

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)
doc_phaser
2017-02-14 10:36:06
Comments
Leave a Comment

Please login to continue.