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:
Members
-
currentFrame
-
- Default Value:
- null
- Source:
Properties:
Name Type Description currentFrame
Phaser.Animation.Frame The currently displayed Frame of animation, if any.
-
game
-
- Source:
Properties:
Name Type Description game
Phaser.Game A reference to the currently running Game.
-
sprite
-
- Source:
Properties:
Name Type Description sprite
Phaser.Sprite A reference to the parent Sprite that owns this AnimationManager.
-
updateIfVisible
-
- Default Value:
- true
- Source:
Properties:
Name Type Description updateIfVisible
boolean Should the animation data continue to update even if the Sprite.visible is set to false.