# godot-animation-player

Guides AnimationPlayer patterns in Godot, covering track types, RESET track setups, root motion physics synchronization, and method call modes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 427 installs · ★ 893
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-animation-player/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-animation-player

## What it does

This skill directs the agent on reliable `AnimationPlayer` patterns for Godot projects. It outlines rules for `Value`, `Method`, and `Audio` tracks to prevent subtle engine bugs. For one-shot gameplay triggers like hitboxes, it enforces `CALL_MODE_DISCRETE`. Leaving call mode on continuous triggers the method every single frame across the key.

The skill references task-specific GDScript templates for common game mechanics. For example, `root_motion_physics_sync.gd` aligns bone root motion with physics ticks on `CharacterBody3D`, while `active_animation_culler.gd` sets `active = false` for off-screen nodes to cut CPU usage. Mutating an `AnimationLibrary` while a clip plays causes transform glitches or engine crashes. You must stop playback first.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-animation-player -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/godot-animation-player/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/godot-animation-player/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-animation-player -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/godot-animation-player/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-animation-player -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-animation-player/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-animation-player
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-animation-player/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-animation-player -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-animation-player
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-animation-player/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-animation-player -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-animation-player/SKILL.md

## When to use it
- sync root motion bone displacement with CharacterBody3D physics
- set up RESET tracks to prevent property leaks across scenes
- switch method tracks to CALL_MODE_DISCRETE for one-shot hits
- cull off-screen AnimationPlayer nodes to reduce CPU load

## Example prompts
- Set up root motion sync between AnimationPlayer and CharacterBody3D in Godot
- Create a method track for attack hitboxes using CALL_MODE_DISCRETE
- Generate an Animation resource programmatically using programmatic_anim.gd

## Similar
- [godot-tilemap](https://affpapa.org/en/nevibecode/skills/godot-tilemap.md) — skill · 6100 installs
- [godot-gdscript](https://affpapa.org/en/nevibecode/skills/godot-gdscript.md) — skill · 6500 installs
- [cli-anything-godot](https://affpapa.org/en/nevibecode/skills/cli-anything-godot.md) — skill · 548 installs
- [godot-prompter](https://affpapa.org/en/nevibecode/plugins/godot-prompter.md) — plugin · ★ 867
- [godot-mcp-enhanced](https://affpapa.org/en/nevibecode/mcp/godot-mcp-enhanced.md) — MCP server · ★ 103
- [godot](https://affpapa.org/en/nevibecode/rules/godot.md) — rule · ★ 3579

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 51 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
