Interface

SpriteAnimPlayOpt

:

Sprite animation configuration when playing.

loop

?: boolean

If this anim should be played in loop.

pingpong

?: boolean

When looping should it move back instead of go to start frame again.

speed

?: number

This anim's speed in frames per second.

preventRestart

?: boolean

If the animation should not restart from frame 1 and t=0 if it is already playing.

default false

onEnd

?: () => void

Runs when this animation ends.

kaplay logo

Layer

Miscalenous