Class: AnimationManager

AnimationManager

Phaser.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:
  • animation/AnimationManager.js, line 16

Members

currentFrame

Properties:
Name Type Description
currentFrame Phaser.Animation.Frame The currently displayed Frame of animation, if any.
Default Value:
  • null
Source:
  • animation/AnimationManager.js, line 32

game

Properties:
Name Type Description
game Phaser.Game A reference to the currently running Game.
Source:
  • animation/AnimationManager.js, line 26

sprite

Properties:
Name Type Description
sprite Phaser.Sprite A reference to the parent Sprite that owns this AnimationManager.
Source:
  • animation/AnimationManager.js, line 21

updateIfVisible

Properties:
Name Type Description
updateIfVisible boolean Should the animation data continue to update even if the Sprite.visible is set to false.
Default Value:
  • true
Source:
  • animation/AnimationManager.js, line 38