Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(godot): correct animation track types and tween binding, add 4.7 tween_await and offset transforms

Kiro Crewa873f517e5a0
diff --git a/skills/godot/godot-animation/SKILL.md b/skills/godot/godot-animation/SKILL.md
index bc92f03..2fecb96 100644
--- a/skills/godot/godot-animation/SKILL.md
+++ b/skills/godot/godot-animation/SKILL.md
@@ -1,8 +1,8 @@
---
name: godot-animation
description: >
- Animate in Godot 4.7 three ways: AnimationPlayer for keyframed clips (incl. call
- and signal tracks), AnimationTree with state machines and blend spaces for
+ Animate in Godot 4.7 three ways: AnimationPlayer for keyframed clips (incl. Call
+ Method tracks), AnimationTree with state machines and blend spaces for
character animation, and Tween for short procedural/UI tweens via create_tween().
Use when working with AnimationPlayer/AnimationTree nodes in a .tscn, blending
character states, sprite-sheet animation, or code-driven Tweens.
@@ -38,7 +38,7 @@ effects → `godot-shaders`.
`AnimationNodeBlendSpace2D` as the tree root.
4. **Drive transitions from code** via the playback object (`travel`) or by setting blend
parameters.
-5. **React to clip events** with the `animation_finished` signal and call/method tracks.
+5. **React to clip events** with the `animation_finished` signal and Call Method tracks.
## Patterns
@@ -103,6 +103,13 @@ func pop_in(node: Control) -> void:
also call `AnimationPlayer.play()` for the same tracks — let the tree own playback.
- **3.x Tween node is gone.** There is no `Tween` node to add in 4.x; create tweens in
code with `create_tween()` (which returns a `Tween`). They auto-start and free themselves.
+- **Tween stalls when its node leaves the tree.** `node.create_tween()` pauses while that
+ node is outside the tree and dies when it is freed. Use `get_tree().create_tween()` for a
+ tween that must keep running while the node is out of the tree.
+- **Scale/rotation tween on a child of a `Container` snaps back** → the container resets
+ child transforms whenever it re-sorts. In 4.7+ set `offset_transform_enabled = true` and
+ tween `offset_transform_scale` / `offset_transform_rotation` / `offset_transform_position`
+ instead (visual only by default).
- **Reusing a finished tween.** A tween is one-shot; call `create_tween()` again for a new
animation. Use `set_loops()` for repetition.
- **`yield`/`yield(anim, "...")` is gone.** Use `await anim.animation_finished`.
diff --git a/skills/godot/godot-animation/references/animation-tree-and-tween.md b/skills/godot/godot-animation/references/animation-tree-and-tween.md
index 923e6ef..8a21d45 100644
--- a/skills/godot/godot-animation/references/animation-tree-and-tween.md
+++ b/skills/godot/godot-animation/references/animation-tree-and-tween.md
@@ -5,17 +5,19 @@ Depth companion to `godot-animation`.
## AnimationPlayer essentials
- Author clips in the editor's Animation panel; each clip keys node properties over time.
-- Track types: **Property** (most common), **3D Position/Rotation/Scale**, **Method**
- (call a function at a keyframe), **Call** track, **Bezier** (curved value), **Audio**,
- **Animation** (play another AnimationPlayer's clip).
+- Track types: **Property** (most common), **3D Position/Rotation/Scale**, **Blend Shape**,
+ **Call Method** (call a function at a keyframe), **Bezier Curve** (curved value),
+ **Audio Playback**, **Animation Playback** (play another AnimationPlayer's clip).
- Playback: `play("name")`, `play_backwards("name")`, `stop()`, `pause()`,
`seek(time, true)`, `speed_scale`, `queue("next")`.
- Signals: `animation_finished(name)`, `animation_started(name)`,
`current_animation_changed(name)`.
- Set a clip's loop mode in the panel (None / Linear / Ping-Pong).
-A **method track** calls a function on the keyed node — great for spawning a hitbox at the
-exact attack frame. A **call track** is similar via the editor's "Functions" track.
+A **Call Method track** calls a function on the keyed node — great for spawning a hitbox at
+the exact attack frame. There is no signal track: to emit a signal at a frame, key a method
+that emits it. Method keys do not run when you preview the animation in the editor (a safety
+rule), so test them in the running game.
## AnimationTree nodes
@@ -73,6 +75,7 @@ tw.tween_property(obj, "modulate:a", 0.0, 0.3) # sub-property
tw.tween_interval(0.2) # wait
tw.tween_callback(func(): print("done")) # call a function
tw.tween_method(_set_progress, 0.0, 1.0, 1.0) # call setter over time
+tw.tween_await(dialog.closed).set_timeout(5.0) # 4.7+: pause until a signal fires
tw.set_parallel(true) # subsequent tweens run together (default is sequential)
tw.set_loops(3) # repeat (0 = infinite)
@@ -86,5 +89,10 @@ Transitions: `TRANS_LINEAR/SINE/QUINT/QUART/QUAD/EXPO/ELASTIC/CUBIC/CIRC/BOUNCE/
Eases: `EASE_IN/OUT/IN_OUT/OUT_IN`. Chain methods on the returned `PropertyTweener`:
`.set_delay(0.1)`, `.from(start)`, `.from_current()`, `.as_relative()`.
-A tween created with `create_tween()` is bound to the node's tree and is killed if the
-node leaves the tree. Use `get_tree().create_tween()` to outlive a specific node.
+`Node.create_tween()` binds the tween to that node: it pauses while the node is outside the
+tree and is killed when the node is freed. `get_tree().create_tween()` makes an unbound tween
+that keeps running regardless of any node.
+
+`tween_await(signal)` (4.7+) holds the sequence until the signal is emitted — useful for
+cutscenes and dialogue. `set_timeout(seconds)` on the returned `AwaitTweener` lets the tween
+carry on if the signal never comes.