2D sprite node in 3D world, that can use multiple 2D textures for animation.
|bool||is_playing ( ) const|
|void||play ( String anim=”” )|
|void||stop ( )|
Emitted when frame changed.
framesresource. If this value changes, the
framecounter is reset.
truethe animation is currently playing.
Animations are created using a SpriteFrames resource, which can be configured in the editor via the SpriteFrames panel.
Return true if an animation if currently being played.
Play the animation set in parameter. If no parameter is provided, the current animation is played.
Stop the current animation (does not reset the frame counter).
© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.