play

fun play(frame: KeyFrameType, frameTime: Duration = 50.milliseconds, numFrames: Int = 1)

Play a specified frame for a certain amount of frames.


fun play(animation: Animation<KeyFrameType>, times: Int = 1, queue: Boolean = false)

Play the specified animation an X number of times.

Parameters

animation

the animation to play

times

the number of times to play

queue

if false will play the animation immediately


fun play(animation: Animation<KeyFrameType>, duration: Duration, queue: Boolean = false)

Play the specified animation for a duration.

Parameters

animation

the animation to play

duration

the duration to play the animation

queue

if false will play the animation immediately