AnimationManager#getAnimation()

getAnimation(name) → {Phaser.Animation} Returns an animation that was previously added by name. Parameters Name Type Description name string The name of the animation to be returned, e.g. "fire". Returns Phaser.Animation - The Animation instance, if found, otherwise null. Source code: animation/AnimationManager.js (Line 371)

AnimationManager#game

game : Phaser.Game A reference to the currently running Game. Source code: animation/AnimationManager.js (Line 25)

AnimationManager#frameTotal

[readonly] frameTotal : number The total number of frames in the currently loaded FrameData, or -1 if no FrameData is loaded. Source code: animation/AnimationManager.js (Line 449)

AnimationManager#frameName

frameName : string Gets or sets the current frame name and updates the Texture Cache for display. Source code: animation/AnimationManager.js (Line 531)

AnimationManager#frameData

[readonly] frameData : Phaser.FrameData The current animations FrameData. Source code: animation/AnimationManager.js (Line 436)

AnimationManager#frame

frame : number Gets or sets the current frame index and updates the Texture Cache for display. Source code: animation/AnimationManager.js (Line 500)

AnimationManager#destroy()

destroy() Destroys all references this AnimationManager contains.Iterates through the list of animations stored in this manager and calls destroy on each of them. Source code: animation/AnimationManager.js (Line 404)

AnimationManager#currentFrame

currentFrame : Phaser.Frame The currently displayed Frame of animation, if any.This property is only set once an Animation starts playing. Until that point it remains set as null. Source code: animation/AnimationManager.js (Line 34)

AnimationManager#currentAnim

currentAnim : Phaser.Animation The currently displayed animation, if any. Source code: animation/AnimationManager.js (Line 40)

AnimationManager#AnimationManager

new AnimationManager(sprite) The Animation Manager is used to add, play and update Phaser Animations.Any Game Object such as Phaser.Sprite that supports animation contains a single AnimationManager instance. Parameters Name Type Description sprite Phaser.Sprite A reference to the Game Object that owns this AnimationManager. Source code: animation/AnimationManager.js (Line 15)