struct Tsh::Flipbook
- Tsh::Flipbook
- Struct
- Value
- Object
Overview
Data for sprite animation
Defined in:
plaything.crConstructors
Instance Method Summary
-
#active : Bool
Is the flipbook currently going? (Overwrites the PlayThing's sprite with current_frame if true)
-
#current_frame : Int32
The current frame that the flipbook is on
-
#delay : Float64
The delay in seconds between frames
-
#delay=(delay : Float64)
The delay in seconds between frames
-
#end_frame : Int32
The ending frame of the flipbook
-
#end_frame=(end_frame : Int32)
The ending frame of the flipbook
-
#reset
Resets the current frame back to the beginning as well as restarting the delay
-
#resume
Starts the flipbook while keeping the current frame and delay difference
-
#start
Starts the flipbook and resets the frame and delay
-
#start_frame : Int32
The starting frame of the flipbook
-
#start_frame=(start_frame : Int32)
The starting frame of the flipbook
-
#stop
Stops the flipbook and saves the current delay
Constructor Detail
Instance Method Detail
def active : Bool
#
Is the flipbook currently going? (Overwrites the PlayThing's sprite with current_frame if true)