struct

PointClickEngine::Characters::AnimationData

Inherits YAML::Serializable < Struct < Value < Object

Contains animation configuration data for character sprites

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(start_frame : Int32 = 0, frame_count : Int32 = 1, frame_speed : Float32 = 0.1, loop : Bool = true, priority : Int32 = 0, interruptible : Bool = true, auto_return_to_idle : Bool = true, sound_effect : String | Nil = nil)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

auto_return_to_idle

Whether to automatically return to idle when animation completes

Source
auto_return_to_idle=(auto_return_to_idle : Bool)

Whether to automatically return to idle when animation completes

Source
frame_count

Number of frames in the animation

Source
frame_count=(frame_count : Int32)

Number of frames in the animation

Source
frame_speed

Time between frames in seconds (lower = faster)

Source
frame_speed=(frame_speed : Float32)

Time between frames in seconds (lower = faster)

Source
interruptible

Whether this animation can be interrupted by lower priority animations

Source
interruptible=(interruptible : Bool)

Whether this animation can be interrupted by lower priority animations

Source
loop

Whether the animation should loop continuously

Source
loop=(loop : Bool)

Whether the animation should loop continuously

Source
priority

Priority for animation interruption (higher = harder to interrupt)

Source
priority=(priority : Int32)

Priority for animation interruption (higher = harder to interrupt)

Source
sound_effect

Optional sound effect to play when animation starts

Source
sound_effect=(sound_effect : String | Nil)

Optional sound effect to play when animation starts

Source
start_frame

First frame index in the animation sequence

Source
start_frame=(start_frame : Int32)

First frame index in the animation sequence

Source