struct

Tsh::Flipbook

Inherits Struct < Value < Object

Data for sprite animation

Constructors

new(start_frame : Int32, end_frame : Int32, delay : Float64)
Source

Instance methods

active

Is the flipbook currently going? (Overwrites the PlayThing's sprite with current_frame if true)

Source
current_frame

The current frame that the flipbook is on

Source
delay

The delay in seconds between frames

Source
delay=(delay : Float64)

The delay in seconds between frames

Source
end_frame

The ending frame of the flipbook

Source
end_frame=(end_frame : Int32)

The ending frame of the flipbook

Source
reset

Resets the current frame back to the beginning as well as restarting the delay

Source
resume

Starts the flipbook while keeping the current frame and delay difference

Source
start

Starts the flipbook and resets the frame and delay

Source
start_frame

The starting frame of the flipbook

Source
start_frame=(start_frame : Int32)

The starting frame of the flipbook

Source
stop

Stops the flipbook and saves the current delay

Source