thedivergentai/gd-agentic-skills

godot-animation-player

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.

First seen Feb 10, 2026

Installation

$ npx skills add thedivergentai/gd-agentic-skills --skill godot-animation-player

Summary

  • 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: AnimationPlayer, Animation, track_insert_key, root_motion, animation_finished, RESET_track, call_mode, animation_set_next, queue, blend_times.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from thedivergentai/gd-agentic-skills · top by installs.

npx skills add thedivergentai/gd-agentic-skills

Browse all from thedivergentai/gd-agentic-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 678
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 11,113 B
  • docs SUMMARY.md 4,002 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 324 installs

SKILL.md

AnimationPlayer

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

NEVER Do

  • NEVER forget RESET tracks — Animated properties otherwise stick across scene changes.
  • NEVER use Animation.CALLMODECONTINUOUS for one-shot logic — Use CALLMODEDISCRETE.
  • NEVER animate embedded resource properties directly — Prefer instance uniforms / owned materials.
  • NEVER use animationfinished for looping clips — Use animationlooped or poll current_animation.
  • NEVER hardcode animation name strings at scale — Constants / StringName.
  • NEVER seek() without update=true when same-frame reads matter.
  • NEVER leave off-screen visual-only players active — Cull with notifiers.
  • NEVER mutate a playing AnimationLibrary — Stop / wait for finished first.
  • NEVER rely on speed_scale for long sync — Prefer seek() against a shared clock.

Available Scripts (MANDATORY triggers)

Open the matching script before implementing that pattern. Deep recipes: [track-authoring.md](references/track-authoring.md), [root-motion-and-sequences.md](references/root-motion-and-sequences.md), [edge-cases.md](references/edge-cases.md).

Need Script
Method-track hit/state keys [methodtracklogic.gd](scripts/methodtracklogic.gd)
Stance/weapon library swap [runtimeanimlibswapper.gd](scripts/runtimeanimlibswapper.gd)
Shader uniform timelines [dynamicshaderanimation.gd](scripts/dynamicshaderanimation.gd)
Runtime track tweak [proceduraltrackmodifier.gd](scripts/proceduraltrackmodifier.gd)
Forced RESET orchestration [resettrackorchestrator.gd](scripts/resettrackorchestrator.gd)
Bezier → procedural drive [beziercurveextraction.gd](scripts/beziercurveextraction.gd)
Off-screen active cull [activeanimationculler.gd](scripts/activeanimationculler.gd)
Root motion ↔ physics [rootmotionphysicssync.gd](scripts/rootmotionphysicssync.gd)
Part/equipment tracks [characterpartswappertracks.gd](scripts/characterpartswappertracks.gd)
TYPE_AUDIO footstep sync [preciseaudiosync.gd](scripts/preciseaudiosync.gd)
Queue/branch sequences [animationsequencer.gd](scripts/animationsequencer.gd)
Code-built Animation resources [programmaticanim.gd](scripts/programmaticanim.gd)
Alt audio-track setup notes [audiosynctracks.gd](scripts/audiosynctracks.gd)

Critical WHY (keep in body)

  • CALLMODECONTINUOUS invokes the method every frame across the key span — one-shot hitboxes/VFX need CALLMODEDISCRETE.
  • Animating embedded sub-resource properties (e.g. material.albedocolor) duplicates resources into the scene — use instanced materials / shaderparameter/* tracks.
  • animationfinished does not fire on looping clips — use animationlooped or poll current_animation.
  • Mutating a playing AnimationLibrary crashes or leaves bad transforms — stop or await finished before swap.
  • speed_scale drifts for rhythm/multiplayer — shared-clock seek(t, true) for long sync.

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](references/track-authoring.md).

Root motion (physics)

CharacterBody3D + Skeleton3D + AnimationPlayer: extract with getrootmotionposition() / rotation on the physics tick — [rootmotionphysicssync.gd](scripts/rootmotionphysics_sync.gd). Walk cycles that only move bones leave the body collider behind.

Sequences, blends, RESET

  • Chain: animationsetnext / queue / [animationsequencer.gd](scripts/animationsequencer.gd).
  • Blend times for walk↔run polish; play("run", -1, 1.0, 0.5) or setdefaultblend_time.
  • Always author a RESET clip with defaults; enable Reset on Save when editing.
  • Reverse playback: play("clip", -1, -1.0) for doors/cinematic rewind.

Full recipes → [root-motion-and-sequences.md](references/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 [runtimeanimlibswapper.gd](scripts/runtimeanimlibswapper.gd) One library, many models — play lib/clip
Decoupled timeline events [methodtracklogic.gd](scripts/methodtracklogic.gd) Method track → signaler → gameplay listeners
Off-screen CPU budget [activeanimationculler.gd](scripts/activeanimationculler.gd) active = false or manual advance()
Code-built clips [programmaticanim.gd](scripts/programmaticanim.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

  • Introduction to the animation features — When AnimationPlayer owns timelines vs Tweens/sprites, and how libraries, RESET, and the editor fit together.
  • Animation track types — Value, Method, Bezier, and Audio tracks plus call-mode and keying rules this skill’s patterns depend on.
  • AnimationPlayerplay/queue/seek, blend times, animationfinished vs animation_looped, and active culling.
  • Animation — Track APIs (trackinsert_key, call modes, audio/bezier helpers) and length/loop metadata.
  • AnimationLibrary — Shared stance/weapon clip packs added via addanimation_library without duplicating tracks per model.
  • AnimationMixer — Root-motion getters, callback process modes, and advance() used by physics sync and budget managers.
  • Using AnimationTree — When blends/state machines should drive an underlying AnimationPlayer instead of manual queue.
  • Tween — Runtime one-shot motion counterpart for the AnimationPlayer-vs-Tween decision matrix.
  • Adding animations (Your first 3D game) — Practical import → AnimationPlayer play loop before advanced track authoring.
  • VisibleOnScreenNotifier3D — Screen enter/exit signals used to toggle AnimationPlayer.active for off-screen CPU savings.

Related Skills

Prerequisites

  • godot-signal-architecture — Safe animationfinished / animationlooped / custom method-track signaling without lifecycle leaks.
  • godot-resource-data-patterns — Shared .tres AnimationLibrary ownership so runtime swaps do not duplicate or mutate playing resources unsafely.
  • godot-gdscript-mastery — Typed programmatic track generation, path strings, and Dictionary method-track payloads.

Complements

  • godot-animation-tree-mastery — Blend trees, OneShot layers, and travel() when locomotion outgrows AnimationPlayer queue/set_next.
  • godot-2d-animation — AnimatedSprite2D / Skeleton2D presentation that still relies on AnimationPlayer method and property tracks.
  • godot-tweening — Interruptible runtime tweens when baking a full Animation resource would be overkill.
  • godot-shaders-basics — ShaderMaterial uniforms driven by value tracks (shader_parameter/*) without embedding materials.
  • godot-audio-systems — Bus/voice pooling around TYPE_AUDIO tracks and footstep/SFX timing on the timeline.
  • godot-physics-3d — CharacterBody3D integration for root-motion position/rotation extraction on the physics tick.

Downstream / consumers

Master

  • godot-master — Library router and mirrored module entry for cross-skill discovery.