pixi.spine.AnimationState

type
class
metadata
:native
"spine.AnimationState"

Constructor

new(stateData : AnimationStateData)

Instance Variables

animationSpeed : Float

current : Dynamic

currentLoop : Bool

currentTime : Float

mixDuration : Float

mixTime : Float

previous : Dynamic

previousLoop : Bool

previousTime : Float

queue : Array<Dynamic>

Instance Methods

addAnimation(trackIndex : Int, animation : Dynamic, loop : Bool, ?delay : Float) : Void

parameters
delay May be <= 0 to use duration of previous animation minus any mix duration plus the negative delay.
Adds an animation to be played delay seconds after the current or last queued animation.

addAnimationByName(trackIndex : Int, animationName : String, loop : Bool, ?delay : Float) : Void

apply(skeleton : Skeleton) : Void

clearAnimation() : Void

isComplete() : Bool

setAnimation(trackIndex : Int, animation : Dynamic, loop : Bool) : Void

Set the current animation. Any queued animations are cleared.

setAnimationByName(trackIndex : Int, animationName : String, loop : Bool) : Void

update(delta : Float) : Void