class

Godot::SpriteFrames

Inherits Godot::Resource < Godot::RefCounted < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

add_animation(anim : String) : Void
Source
add_frame(anim : String, texture : Texture2D, duration : Float64, at_position : Int64) : Void
Source
animations

Property animations getter

Source
animations=(val)

Property animations setter

Source
clear(anim : String) : Void
Source
clear_all
Source
duplicate_animation(anim_from : String, anim_to : String) : Void
Source
get_animation_loop(anim : String) : Bool
Source
get_animation_loop_mode(anim : String) : Int64
Source
get_animation_names
Source
get_animation_speed(anim : String) : Float64
Source
get_frame_count(anim : String) : Int64
Source
get_frame_duration(anim : String, idx : Int64) : Float64
Source
get_frame_texture(anim : String, idx : Int64) : Texture2D
Source
has_animation(anim : String) : Bool
Source
remove_animation(anim : String) : Void
Source
remove_frame(anim : String, idx : Int64) : Void
Source
rename_animation(anim : String, newname : String) : Void
Source
set_animation_loop(anim : String, loop : Bool) : Void
Source
set_animation_loop_mode(anim : String, loop_mode : Int64) : Void
Source
set_animation_speed(anim : String, fps : Float64) : Void
Source
set_frame(anim : String, idx : Int64, texture : Texture2D, duration : Float64) : Void
Source

Nested types