SpriteFrames
Inherits: Resource < Reference < Object
Category: Core
Brief Description
Sprite frame library for AnimatedSprite.
Member Functions
void | add_animation ( String anim ) |
void | add_frame ( String anim, Object frame, int atpos=-1 ) |
void | clear ( String anim ) |
void | clear_all ( ) |
bool | get_animation_loop ( String anim ) const |
float | get_animation_speed ( String anim ) const |
Object | get_frame ( String anim, int idx ) const |
int | get_frame_count ( String anim ) const |
bool | has_animation ( String anim ) const |
void | remove_animation ( String anim ) |
void | remove_frame ( String anim, int idx ) |
void | rename_animation ( String anim, String newname ) |
void | set_animation_loop ( String anim, bool loop ) |
void | set_animation_speed ( String anim, float speed ) |
void | set_frame ( String anim, int idx, Object txt ) |
Description
Sprite frame library for AnimatedSprite.
Member Function Description
void add_animation ( String anim )
void add_frame ( String anim, Object frame, int atpos=-1 )
void clear ( String anim )
void clear_all ( )
bool get_animation_loop ( String anim ) const
float get_animation_speed ( String anim ) const
Object get_frame ( String anim, int idx ) const
int get_frame_count ( String anim ) const
bool has_animation ( String anim ) const
void remove_animation ( String anim )
void remove_frame ( String anim, int idx )
void rename_animation ( String anim, String newname )
void set_animation_loop ( String anim, bool loop )
void set_animation_speed ( String anim, float speed )
void set_frame ( String anim, int idx, Object txt )
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_spriteframes.html