Godot animation player

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot animation player is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert patterns for AnimationPlayer including track types (Value, Method, Audio, Bezier), root motion extraction, animation callbacks, procedural animation generation, call mode optimization, and RESET tracks. Use for timeline-based animations, cutscenes, or UI transitions. Trigger keywords: Animati

How to use this skill

Skill file

AnimationPlayer

Timeline-based keyframe animation: track choice, RESET, root motion, libraries — scripts own recipes.

NEVER Do


Available Scripts (MANDATORY triggers)

Open the matching script before implementing that pattern. Deep recipes: track-authoring.md, root-motion-and-sequences.md, edge-cases.md.

| Need | Script |

|---|---|

| Method-track hit/state keys | method_track_logic.gd |

| Stance/weapon library swap | runtime_anim_lib_swapper.gd |

| Shader uniform timelines | dynamic_shader_animation.gd |

| Runtime track tweak | procedural_track_modifier.gd |

| Forced RESET orchestration | reset_track_orchestrator.gd |

| Bezier → procedural drive | bezier_curve_extraction.gd |

| Off-screen active cull | active_animation_culler.gd |

| Root motion ↔ physics | root_motion_physics_sync.gd |

| Part/equipment tracks | character_part_swapper_tracks.gd |

| TYPE_AUDIO footstep sync | precise_audio_sync.gd |

| Queue/branch sequences | animation_sequencer.gd |

| Code-built Animation resources | programmatic_anim.gd |

| Alt audio-track setup notes | audio_sync_tracks.gd |

Critical WHY (keep in body)

Track decision matrix

| Track | Use when | Avoid when |

|---|---|---|

| Value | Animate properties (pos, modulate, uniforms) | One-off runtime juice → Tween |

| Method | Hitboxes, SFX hooks, state flips at timestamps | CONTINUOUS call mode / missing method on path |

| Audio | Footsteps / VO locked to frames | Loose AudioStreamPlayer.play() drift |

| Bezier | Custom easing curves sampled at runtime | Simple linear fades |

Track authoring samples → track-authoring.md.

Root motion (physics)

CharacterBody3D + Skeleton3D + AnimationPlayer: extract with get_root_motion_position() / rotation on the physics tick — root_motion_physics_sync.gd. Walk cycles that only move bones leave the body collider behind.

Sequences, blends, RESET

Full recipes → root-motion-and-sequences.md.

AnimationPlayer vs Tween

| Need | Prefer |

|---|---|

| Timeline / many properties / reusable | AnimationPlayer |

| One-shot runtime / interruptible | Tween (godot-tweening) |

Expert architecture (scripts)

| Pattern | Script | WHY |

|---|---|---|

| Shared humanoid libraries | runtime_anim_lib_swapper.gd | One library, many models — play lib/clip |

| Decoupled timeline events | method_track_logic.gd | Method track → signaler → gameplay listeners |

| Off-screen CPU budget | active_animation_culler.gd | active = false or manual advance() |

| Code-built clips | programmatic_anim.gd | Dynamic targets not in FBX |

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API;

load Related Skills when routing work to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.