AnimatedSprite3D
2D sprite node in 3D world, that can use multiple 2D textures for animation.
Animations are created using a resource, which can be configured in the editor via the SpriteFrames panel.
Tutorials
Methods
is_playing ( ) const | |
void | ( String anim=”” ) |
void | ( ) |
- frame_changed ( )
Property Descriptions
The current animation from the resource. If this value changes, the frame
counter is reset.
- int frame
Default | 0 |
Setter | set_frame(value) |
Getter | get_frame() |
The displayed animation frame’s index.
- frames
- bool playing
Default | false |
If , the is currently playing.
- bool is_playing ( ) const
Returns true
if an animation is currently being played.
- void stop ( )
Stops the current animation (does not reset the frame counter).