Methods
-
fromTo (instance, start, end, loop, callback)PIXI.animate.AnimatorTimeline
-
Play a MovieClip from a start to end frame.
Name Type Default Description instancePIXI.animate.MovieClip Movie clip to play.
startNumber | String The starting frame index or label.
endNumber | String The ending frame index or label.
loopBoolean false optional If the animation should loop.
callbackfunction optional Optional callback when complete
Returns:
Type Description PIXI.animate.AnimatorTimeline Timeline object for stopping or getting progress. -
play (instance, label, callback)PIXI.animate.AnimatorTimeline
-
Play an animation by frame labels. For instance, play animation sequence from "idle" to "idle_stop" or "idle_loop". If no event label is provided, will play the entire duration of the MovieClip.
Name Type Description instancePIXI.animate.MovieClip Movie clip to play.
labelString | function optional The frame label event to call, if no event is provided will use the entire length of the MovieClip. Can also be the callback.
callbackfunction optional Optional callback when complete
Returns:
Type Description PIXI.animate.AnimatorTimeline Timeline object for stopping or getting progress. -
Stop the animation by instance.
Name Type Description instancePIXI.animate.MovieClip Movie clip to play.
-
Stop all the currently playing animations.
-
to (instance, end, callback)PIXI.animate.AnimatorTimeline
-
Play an animation from the current frame to an end frame or label.
Name Type Description instancePIXI.animate.MovieClip Movie clip to play.
endString | Number The end frame or label.
callbackfunction optional Optional callback when complete
Returns:
Type Description PIXI.animate.AnimatorTimeline Timeline object for stopping or getting progress.