Sprite node that can use multiple textures for animation.
|bool||is_playing ( ) const|
|void||play ( String anim=”” )|
|void||stop ( )|
Emitted when the animation is finished (when it plays the last frame). If the animation is looping, this signal is emitted every time the last frame is drawn.
Emitted when frame changed.
framesresource. If this value changes, the
framecounter is reset.
truetexture will be centered. Default value:
truetexture is flipped horizontally. Default value:
truetexture is flipped vertically. Default value:
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.