Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Godot animation fixes

Fixes Godot 4 AnimationPlayer, AnimationTree, sprite and tween problems, then confirms with a headless test.

Claude's review

7/10 Accurate Godot animation patterns and gotchas with a headless verification workflow.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Godot 4.7 animation APIs: AnimationPlayer, AnimationTree state machines, AnimatedSprite2D and create_tween() Tweens, with a headless state test. Use when travel() does nothing, an animation will not play, a tween snaps back or the log says "Animation not found". Not for easing choices (`game-feel`), sprite art (`create-game-assets`) or Unity (`unity-animation`).

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: godot-animation
description: >
  Godot 4.7 animation APIs: AnimationPlayer, AnimationTree state machines, AnimatedSprite2D and
  create_tween() Tweens, with a headless state test. Use when travel() does nothing, an animation
  will not play, a tween snaps back or the log says "Animation not found". Not for easing choices
  (`game-feel`), sprite art (`create-game-assets`) or Unity (`unity-animation`).
---

# Godot Animation (4.x)

Drive clips, blends and tweens the way Godot expects, then prove the names and states with a
headless test. Targets **Godot 4.7**; check `config/features` in `project.godot` first.

## Workflow

1. **Pick one owner per property.** `AnimationPlayer` stores keyframed clips. An active
   `AnimationTree` plays those clips and owns their tracks, so code talks to the tree.
   `Tween` is for short code-driven moves (UI pops, fades, one-off motion).
2. **Characters:** clips in an `AnimationPlayer`, then an `AnimationTree` with `anim_player`
   pointing at it, `active = true`, and an `AnimationNodeStateMachine` or blend space as
   `tree_root`. Sprite sheets: `AnimatedSprite2D` + `SpriteFrames`, or key `frame` in a clip.
3. **Drive from gameplay state**, not input: pick the state from velocity and floor checks
   each physics tick and call `travel()`; set blend positions through `parameters/` paths.
4. **Events:** `animation_finished` for non-looping clips, Call Method tracks for frame-exact
   hits and footsteps.
5. **Verify before you finish** (paths are relative to this skill's folder):
   - If `godot-nodes-scenes` is installed, run `python3 ../godot-nodes-scenes/scripts/check_godot_project.py <project>`
     after editing `.tscn` files; it catches broken resource paths and `parent=` node paths.
     The headless test below covers `anim_player`.
   - Run the scene headless and read the log, because Godot exits 0 after these errors:
     `godot --headless --path <project> --quit-after 300 res://player.tscn > run.log 2>&1`, then
     `grep -nE "SCRIPT ERROR|^ERROR:" run.log`. "Animation not found", "No such node" (bad
     `travel()` target) and "started with no Tweeners" all land there.
   - Copy `assets/test_animation_states.gd` to `res://tests/`, list the clip and state names
     the code uses, and run it with `godot --headless --path <project> --script res://tests/test_animation_states.gd`.
     Exit 0 means every clip exists, the tree is active and wired, and each state is
     reachable. CI wiring: `godot-gdscript-headless-testing`.
   - Timing and look need eyes: ask the user to play the scene and report anything that
     pops, slides or plays at the wrong moment.
...

From gamedev-skills's repository, Apache-2.0 licence.

Related skills

  • Checked

    Game Audio Mixing

    Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Game camera tuning

    Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Game Enemy AI

    Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Game Loop and Timing

    Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.

    by makifbaysal 123
    7/101 credit
  • Checked

    Godot Game Testing

    Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.

    by makifbaysal 123
    7/101 credit
  • Checked

    Game Security Review

    Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.

    by makifbaysal 123
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added