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:

Members

currentFrame

Properties:
Name Type Description
currentFrame Phaser.Animation.Frame

The currently displayed Frame of animation, if any.

Default Value:
  • null
Source:

game

Properties:
Name Type Description
game Phaser.Game

A reference to the currently running Game.

Source:

sprite

Properties:
Name Type Description
sprite Phaser.Sprite

A reference to the parent Sprite that owns this AnimationManager.

Source:

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:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.2.0-dev on Tue Oct 01 2013 23:59:05 GMT+0100 (BST) using the DocStrap template.