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