Interface
SpriteAnimPlayOpt
:Sprite animation configuration when playing.
loop
?: booleanIf this anim should be played in loop.
pingpong
?: booleanWhen looping should it move back instead of go to start frame again.
speed
?: numberThis anim's speed in frames per second.
preventRestart
?: booleanIf the animation should not restart from frame 1 and t=0 if it is already playing.
default
false
onEnd
?: () => voidRuns when this animation ends.