Skip to content

Animation actions

8 actions in the Animation category. Each block mirrors how the action appears in the editor's sidebar.

Animation Travel

Start
Animation Travel Animation
Tree not set | State 'idle'

Tells an AnimationTree state machine to move to a state, walking the transitions in between. Bind Tree to the AnimationTree node.

Input Type Default Description
Tree Node - The AnimationTree whose state machine travels.
State StringName 'idle' The state to travel to.

Phases StartEvery FramePhysicsEnd

Is Animation Playing

Every Frame
Is Animation Playing Animation
not set | → True | → False

Answers whether an AnimationPlayer is still running, which is how a state waits for an animation to finish. It can branch on the answer or hand it to a field that takes a yes or no.

Input Type Default Description
Player Node - The AnimationPlayer to check.
Output Type Description
Yes bool Where to store whether the animation is still running.
Branch Goes to
True Where to go while the animation is still playing.
False Where to go once the animation has stopped.

Phases StartEvery FramePhysics

Play Animation

Start
Play Animation Animation
Player not set | Animation 'idle'

Plays a named animation on an AnimationPlayer.

Input Type Default Description
Player Node - The AnimationPlayer to play.
Animation StringName 'idle' Name of the animation to play, such as idle or run.

Phases StartEvery FramePhysicsEnd

Queue Animation

Start
Queue Animation Animation
Player not set | Animation 'idle'

Lines up an animation to play after the current one finishes on an AnimationPlayer. Play Animation cuts in right away instead.

Input Type Default Description
Player Node - The AnimationPlayer to queue on.
Animation StringName 'idle' Name of the animation to play next.

Phases StartEvery FramePhysicsEnd

Set Animation Speed

Start
Set Animation Speed Animation
Player not set | Speed 1.0

Changes how fast an AnimationPlayer plays. 1 is normal speed, 2 is twice as fast and a negative value plays it backwards.

Input Type Default Description
Player Node - The AnimationPlayer to adjust.
Speed float 1.0 Playback speed, where 1 is normal and 2 is twice as fast.

Phases StartEvery FramePhysicsEnd

Sprite Play

Start
Sprite Play Animation
Sprite not set | Animation 'default'

Plays an animation on an AnimatedSprite2D, the sprite sheet kind of sprite.

Input Type Default Description
Sprite Node - The AnimatedSprite2D to play.
Animation StringName 'default' Name of the animation to play, such as walk or jump.

Phases StartEvery FramePhysicsEnd

Sprite Set Frame

Start
Sprite Set Frame Animation
Sprite not set | Frame 0

Jumps an AnimatedSprite2D to a specific frame of its current animation.

Input Type Default Description
Sprite Node - The AnimatedSprite2D to change.
Frame int 0 Index of the frame to show, starting at 0.

Phases StartEvery FramePhysicsEnd

Stop Animation

Start
Stop Animation Animation
not set

Stops an AnimationPlayer where it is.

Input Type Default Description
Player Node - The AnimationPlayer to stop.

Phases StartEvery FramePhysicsEnd