Sprite node that can use multiple textures for animation.
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).
- The current animation from the [code]frames[/code] resource. If this value changes, the [code]frame[/code] counter is reset.
- If [code]true[/code] texture will be centered. Default value: [code]true[/code].
- If [code]true[/code] texture is flipped horizontally. Default value: [code]false[/code].
- If [code]true[/code] texture is flipped vertically. Default value: [code]false[/code].
- The displayed animation frame's index.
- The [SpriteFrames] resource containing the animation(s).
- The texture's drawing offset.
- If [code]true[/code] the [member animation] is currently playing.
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 [member frame] changed.