Type of animation command for AnimationExt command buffer.
Values
Delay(time:Float)
Delays execution of next command by specified time in seconds.
SwitchTo(name:String, frame:Null<Int>)
Switches to an animation with specified name and plays it at specified frame.
If frame value is null
- animation frame will not reset when switching to same animation.
Executes next command immediately if animation not found.
Jump(frame:Int)
Jumps to specified frame in current animation.
Pause
Pauses playback. Executes next command immediately.
Reset
Resets animation. Equivalent to Jump(0).
SetLoop(loop:Bool)
Sets animation looping flag. Executes next command immediately.
SetSpeed(speed:Float)
Sets animation speed value. Executes next command immediately.
Event(name:String)
Calls onEvent
with specified event name.
Executes next command immediately.
Chain(commands:Array<AnimationCommand>)
Executes a chain of command ignoring if it should trigger next command or delay it. Delay command does not have an effect on Chain execution, but sets the animation delay. Executes next command immediately if animation is paused.