/godot-dev:godot-animationfrom godot-dev
Guides on Godot animation systems: AnimationPlayer, AnimationTree, state machines, blend spaces, root motion, and track events. Includes headless testing for animation logic.
Ships in godot-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An AnimationTree reads parameters gameplay sets; the clips stay in libraries. The tree is the
character's animation logic, and logic can be tested: run it by hand, a fixed step at a time,
headless, and check which state it is in, how far it moved and which events fired.
| The situation | Read |
|---|---|
| Clips into a player, libraries by name, building a clip in code | reference/trees.md §1 |
| A pose or property sticks after the clip changes; RESET | reference/trees.md §1, "A value that sticks" |
A state machine: transitions, conditions, travel(), the playback object | reference/trees.md §2 |
| The tree sits in Start, or a state never leaves | reference/trees.md §2, "States that never leave" |
| Walk–run by speed: a blend space, its points, its parameter path | reference/trees.md §3 |
| Prove the transitions headless; a test that drives the tree frame by frame | reference/trees.md §4, scripts/tree_probe.py |
| One place where gameplay sets parameters and hears back | reference/trees.md §5, resources/animation_bridge.gd |
| Root motion: the track, what one update returns, into a CharacterBody3D | reference/root-motion.md §1–3 |
| Feet slide, or the character drifts back once a loop | reference/root-motion.md §4 |
| Footsteps, hit windows, the parcel hand-off from the clip; a call that never lands | reference/events.md |
| Clips arrive retargeted from the asset side, as an AnimationLibrary | godot-rigged-character → reference/retarget.md |
Each holds in a headless run, and none prints a warning:
travel(); keep At End for clips that play once.AnimationMixer.deterministic is on and a RESET clip keys it.Skeleton3D.motion_scale: read motion only through
get_root_motion_position(), and measure over whole seconds plus one update.ERROR: line while the clip plays on.python3 scripts/tree_probe.py --project . --scene res://courier_3d.tscn --tree Courier/AnimationTree \
--bridge Courier/AnimationBridge --set 1:parameters/Locomotion/blend_position=2 \
--travel 30:Jump --expect 31:Jump --expect 70:Locomotion --frames 121
The probe loads the scene from the (imported) project with a script kept outside it, switches the
tree to Manual and advances it 1/60 s per frame, applying each --set FRAME:PARAM=JSON and
--travel FRAME:STATE before that frame's update. It prints the state timeline, the events the
bridge emitted and the root motion summed, then tree_probe: PASS|FAIL .... Checks:
--expect FRAME:STATE, --expect-moved X,Y,Z (with --tolerance), --expect-events N, and
always frames that move against the run's direction. Exit 0 pass, 2 an expectation failed or an
error or warning line in the output, 3 nothing verified (no Godot, no sentinel, a scene or tree that
did not load), 1 usage. --yaw 90 turns the character first, which proves root motion is turned
into world space.
resources/animation_bridge.gd is one node next to the tree. Gameplay calls
set_speed(m_per_s), set_condition(&"grounded", is_on_floor()) and travel(&"Jump"); clips call
its anim_event(name) from method tracks; it emits state_changed(previous, current) and
animation_event(event), and turns root motion into a world velocity (root_motion_velocity),
moving body itself when apply_root_motion is on.
@onready var anim: Node = $AnimationBridge
func _ready() -> void:
anim.animation_event.connect(_on_animation_event)
func _on_animation_event(event: StringName) -> void:
if event == &"foot_left" or event == &"foot_right":
$Footsteps.play()
add_blend_point without a name prints a WARNING: per point.anim_event on the bridge; gameplay
listens to a signal, and renaming gameplay code breaks no clip.advance(1.0 / 60.0): the same frames on
every machine, no window, no flake.| Not here | Go to |
|---|---|
| Importing and retargeting a rigged character; clip files as a library; props and springs | godot-rigged-character |
| The model's import settings, loop suffixes, the budget audit | godot-3d-models |
| Moving the character: controller, grounding, camera | godot-3d-controller · godot-camera |
| Frame-by-frame sprite animation | godot-2d-sprites |
| Bones and weights on a 2D character | godot-2d-rig |
| A test runner, assertions, CI | godot-testing |
| Retargeting or baking clips in Blender | blender-retarget |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tipoli5890/game-studio --plugin godot-dev28 skills in this plugin
/godot-2d-controllerMove a 2D character in Godot: CharacterBody2D jump, coyote time, jump buffer, slopes, one-way and moving platforms, top-down movement./godot-2d-renderingGodot 2D look: draw order, z_index and y-sort, CanvasLayer, 2D lights and shadows, canvas shaders, Parallax2D, pixel-perfect scaling./godot-2d-rigA layered 2D character into Godot: rig2d.json to Skeleton2D, Bone2D and weighted Polygon2D parts, cut-out animation, 2D IK.