class_spriteframes - dragonsoulz/godot GitHub Wiki
SpriteFrames
####Inherits: Resource ####Category: Core
Brief Description
Sprite frame library for AnimatedSprite.
Member Functions
- void add_frame ( Object frame, int atpos=-1 )
- int get_frame_count ( ) const
- Object get_frame ( int idx ) const
- void set_frame ( int idx, Object txt )
- void remove_frame ( int idx )
- void clear ( )
Description
Sprite frame library for AnimatedSprite.
Member Function Description
add_frame
Add a frame (texture).
get_frame_count
- int get_frame_count ( ) const
Return the amount of frames.
get_frame
Return a texture (frame).
remove_frame
- void remove_frame ( int idx )
Remove a frame
clear
- void clear ( )
Clear the frames.