Skip to content

rq.PlayFlashOpts ​

since 2.63.0

Options for rq.image.play_flash: the sprite's (rq.SpriteOpts, such as x, y, z, scale, attach and sound) and the play's.

Fields ​

NameTypeDescription
from (optional)integerThe first frame, from 1. Default 1.
to (optional)integerThe last frame. Default the file's last.
loop (optional)booleanPlays over and over until the sprite is removed. Default false.
on_end (optional)fun(s: rq.Sprite )Runs after the last frame has shown, before the sprite goes.
wait (optional)booleanIn a job from rq.spawn: the call returns once the play has ended. Default false.

Used by ​

rq.image.play_flash