A graph for a game
A game does not choose animations: it says how fast Pip goes, and a graph of states chooses for it. Pip stands while it is still and walks while it moves, crossfading from one to the other.
Two states and a number
- Open the tab Flow of the bar.
- Press + State twice: a state that plays idle, then one that plays walk. The wedge on the left of idle says it is the entry, the state Pip starts in.
- Press + Parameter and choose Number: a parameter named
speed, which the game will set.

The ways between them
- Take the Link tool (L) and drag from idle to walk: a transition, chosen. Under When, press + Condition: speed is above 0.
- Drag from walk back to idle, press + Condition, and choose
is in place of is above: back to the idle when
speedis 0. - Each transition fades over 0.2 s; its Crossfade sets how long.

Play it as a game would
Play the graph plays Pip in the corner of the canvas, from its entry, the state it is in lit.
Type 1 beside speed under Play: Pip walks. Type 0: it stands again. A game does
the same with set_number("speed", …) on the node of the Godot runtime, or on the
character of the Bevy runtime, and the graph is saved in flow.json beside the project.

All of this is in States for a game, in the manual.