class

PointClickEngine::Graphics::Sprites::MultiAnimationSprite

Inherits PointClickEngine::Graphics::Sprites::AnimatedSprite < PointClickEngine::Graphics::Sprites::Sprite < Reference < Object

Enhanced animated sprite with named animations

Instance methods

add_animation(name : String, frames : Array(Int32), frame_duration : Float32, loop : Bool = true)

Add animation from parameters

Source
add_animation(animation : AnimationDef)

Add an animation definition

Source
add_animation_range(name : String, start_frame : Int32, end_frame : Int32, frame_duration : Float32, loop : Bool = true)

Add animation from frame range

Source
current_animation_name

Get current animation name

Source
play_animation(name : String)

Play a named animation

Source