This class plays animation sequences of frames and mimics the syntax required for creating CreateJS Sprites, allowing CreateJS Sprite Sheet definitions to be used with pixiJS.
Sets the texture and anchor for a particular frame.
Animation frame index to set.
The speed that the PIXIAnimation will play at. Higher is faster, lower is slower
Indicates if the PIXIAnimation is currently playing
The PIXIAnimations current frame index
[restart = true]
Goes to a specific frame and begins playing the PIXIAnimation
Elapsed time since animation has been started, used internally to display current texture
Returns whether a particular animation is available.
The animation to check.
Stops the PIXIAnimation and destroys it
This method makes sure that all the base textures are in the gpu to prevent framerate lurches later due to loading base textures as their textures appear.
This method cleans out all PIXIAnimation baseTextures at the end of a scene.
This method formats a provided value into a valid PIXIAnimation Sprite Sheet. This includes accepting the EaselJS spec, strings mapping to Platypus sprite sheets, or arrays of either.
The currently playing animation name.
The PIXIAnimations paused state. If paused, the animation doesn't update.
The visibility of the sprite.