Godot Animation Tree Mastery logo

Godot Animation Tree Mastery

Community
thedivergentai
godot-animation-tree-mastery

Expert patterns for AnimationTree including StateMachine transitions, BlendSpace2D for directional movement, BlendTree for layered animations, root motion, transition conditions, advance expressions, and state machine sub-states. Use for complex character animation systems with movement blending and state management. Trigger keywords: AnimationTree, AnimationNodeStateMachine, BlendSpace2D, BlendSpace1D, BlendTree, transition_request, blend_position, advance_expression, AnimationNodeAdd2, AnimationNodeBlend2, root_motion.

Overview

Publisherthedivergentai
RepositoryGD-Agentic-Skills
Skill namegodot-animation-tree-mastery
Stars
727
Forks
43
Bundled files
18
LicenseLGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 18 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by thedivergentai on GitHub. Read the source before you install it.

Installation

Install the Godot Animation Tree Mastery AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git /tmp/GD-Agentic-Skills
mkdir -p .claude/skills
cp -r /tmp/GD-Agentic-Skills/skills/godot-animation-tree-mastery .claude/skills/godot-animation-tree-mastery
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Animation Tree Mastery in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Animation Tree Mastery on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Animation Tree Mastery is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AnimationTree Mastery

Expert guidance for Godot's advanced animation blending and state machines.

NEVER Do

  • NEVER call play() on AnimationPlayer when using AnimationTree — AnimationTree controls the player. Directly calling play() causes conflicts and jitter. Use set("parameters/transition_request") or travel() instead.
  • NEVER forget to set active = true — AnimationTree is inactive by default. Animations won't play until $AnimationTree.active = true.
  • NEVER use absolute paths for parameter access — Use relative paths like "parameters/StateMachine/transition_request". This ensures compatibility when nodes move in the hierarchy.
  • NEVER leave auto_advance enabled for interactive states — It causes immediate transitions. Use it only for automated sequences like combo chains or death-to-respawn.
  • NEVER use BlendSpace2D for 1D blending — Blending only speed? Use BlendSpace1D. Blending only two states? Use Blend2. BlendSpace2D is specifically for X+Y directional inputs (strafe).
  • NEVER update AnimationTree parameters every frame without a guard — Setting parameters via set() every frame regardless of change causes cache invalidation and potential stutter. Check equality first.
  • NEVER use deep, nested BlendTrees for simple logic — Every layer adds CPU overhead. If logic can be handled in a StateMachine or a simple script-driven Blend2, do it there.
  • NEVER forget to handle await get_tree().process_frame when updating parameters synchronously — Sometimes the tree needs one frame to reconcile state before the next parameter change takes effect.
  • NEVER rely on auto_advance for long cutscenes — If an animation is interrupted, auto_advance can put the character in a broken state. Use Method Tracks to signal state completion instead.
  • NEVER use Sync groups for animations with wildly different lengths — It forces one animation to play at an extreme speed. Use TimeScale or separate layers for mismatching cycles.

Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern. Do NOT Load references/advanced-graph-recipes.md unless nested combat graphs, IK look-at, or deep BlendTree layering are in scope.

sync_parameter_manager.gd

Guarded AnimationTree parameter writes — prevent redundant set() churn every physics frame.

statemachine_travel_code.gd

Programmatic AnimationNodeStateMachinePlayback via travel() / start().

tree_travel_manager.gd

Trigger: multi-machine travel / request queue. Centralizes travel requests across nested playback paths without calling AnimationPlayer.play().

nested_state_machine.gd

Trigger: locomotion + combat (or air) sub-machines. Nested StateMachine parameter paths and playback handoff.

skeleton_ik_lookat.gd

Trigger: aim/look-at beside the tree. LookAtModifier3D / IK that must not fight bone tracks the tree owns.

reactive_oneshot_vfx.gd

AnimationNodeOneShot for recoil, blinks, and hit reactions.

dynamic_timescale_control.gd

Runtime playback speed for bullet-time or haste multipliers.

advanced_transition_masking.gd

Bone filter masks on Add2/Blend2 for upper/lower body separation.

blendtree_logic_mixing.gd

Interactive combat layer mixing inside BlendTree graphs.

root_motion_animtree_sync.gd

CharacterBody motion extraction from AnimationTree root motion.

sync_group_layering.gd

Sync groups for multi-layer clips that share length (e.g. walk + reload).

nested_tree_architecture.gd

Hierarchical StateMachine / nested parameter path architecture.

runtime_tree_debugging.gd

Visualize current states, travel paths, and blend values at runtime.

animation_event_dispatcher.gd

Method-track → dispatch_event(name, metadata) signal bridge; decouple VFX/audio from graph code.

animation_complexity_manager.gd

Swap tree_root hero vs crowd graph when VisibleOnScreenNotifier3D culls off-screen actors.


Decision Tree (replace inline tutorials)

NeedPreferScript
Simple clip swap / UI / propAnimationPlayer onlyPeer godot-animation-player
5+ gameplay states, travelStateMachine rootstatemachine_travel_code.gd, tree_travel_manager.gd
Speed only blendBlendSpace1DGuarded writes via sync_parameter_manager.gd
Strafe / aim X+YBlendSpace2DSame + blend_position
Upper-body overlay / combat layerBlendTree Add2/Blend2/OneShotblendtree_logic_mixing.gd, reactive_oneshot_vfx.gd
Nested combat/air under locomotionNested SMMANDATORY nested_state_machine.gd
Look-at / IKModifier beside treeMANDATORY skeleton_ik_lookat.gd
Deep graph recipesreferences/Do NOT Load unless needed → advanced-graph-recipes.md

Core Concepts (compact): AnimationTree owns an AnimationPlayer via anim_player; root is StateMachine / BlendTree / BlendSpace; parameters use relative "parameters/..." paths; set active = true once in _ready.

gdscript
@onready var anim_tree: AnimationTree = $AnimationTree
@onready var playback: AnimationNodeStateMachinePlayback = anim_tree.get("parameters/StateMachine/playback")

func _ready() -> void:
    anim_tree.active = true

Do not paste full StateMachine/BlendSpace editor walkthroughs — author graphs in the AnimationTree editor, then drive them with the scripts above.


Expert insights (WHY — keep in body)

  • Advance conditions vs travel — WHY: bool conditions auto-fire transitions; travel() is explicit pathing. Use conditions for damage/death events; travel for locomotion intent.
  • BlendSpace2D cost — WHY: 8-way blending samples multiple clips. Use BlendSpace1D for speed-only; Blend2 for two-state crossfades.
  • Parameter guard — WHY: redundant set() invalidates tree cache every frame. Route writes through sync_parameter_manager.gd.
  • Method tracks — WHY: gameplay should listen to dispatcher signals, not parse animation names. See animation_event_dispatcher.gd.

Deep recipes (on demand)

TopicReference / script
StateMachine / BlendSpace editor recipesstatemachine-and-blendspace.md
Nested combat / IK / root motionadvanced-graph-recipes.md

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

  • Using AnimationTree — Canonical BlendTree / StateMachine / BlendSpace graph workflow that drives an AnimationPlayer without calling play() yourself.
  • Introduction to the animation features — When to graduate from AnimationPlayer-only clips to an AnimationTree for blending, travel, and layered presentation.
  • Animation track types — Method and value tracks that fire gameplay events (footsteps, hitboxes) from clips the tree is already blending.
  • AnimationTreeactive, tree_root, anim_player, root-motion getters, and the parameters/* path contract used throughout this skill.
  • AnimationNodeStateMachine — Authoring nested locomotion/combat graphs and wiring transitions before code calls travel().
  • AnimationNodeStateMachinePlayback — Runtime travel(), start(), get_current_node(), and travel-path inspection for code-driven state changes.
  • AnimationNodeStateMachineTransition — Advance conditions, auto_advance, Sync, xfade, and priority rules that prevent sticky or immediate unwanted transitions.
  • AnimationNodeBlendSpace2D — Directional strafe/aim blending via blend_position (use BlendSpace1D when only speed is needed).
  • AnimationNodeBlendTree — Layered Add2/Blend2/OneShot graphs for upper-body aim, combat overlays, and filter masks.
  • AnimationNodeOneShot — FIRE/ABORT request enum for recoil, hitreact, and other high-priority non-looping overlays.
  • AnimationNodeTimeScale — Per-subtree playback speed for haste, stun, and bullet-time without mutating Engine.time_scale.
  • LookAtModifier3D — Skeleton look-at driven beside the tree; see migration-notes.md for relative default change.

Related Skills

Prerequisites
  • godot-animation-player — AnimationTree owns playback of clips authored on AnimationPlayer; track layout and ownership must be correct before blending.
  • godot-input-handling — Stick/keyboard vectors and actions that feed blend_position, advance conditions, and travel targets each physics frame.
  • godot-signal-architecture — Safe wiring for method-track dispatchers and animation-finished style signals without lifecycle leaks.
Complements
  • godot-2d-animation — Sheet/cutout and 2D locomotion presentation that still uses AnimationTree BlendSpaces or simple travel graphs.
  • godot-state-machine-advanced — Gameplay FSMs that should own intent while AnimationTree owns presentation travel and blends.
  • godot-physics-3d — CharacterBody3D / move_and_slide integration for AnimationTree root-motion extraction.
  • godot-characterbody-2d — Fixed-timestep 2D locomotion inputs that drive StateMachine travel and BlendSpace positions.
  • godot-tweening — Tweening TimeScale or blend amounts when bullet-time and combat mix ramps should be interruptible.
  • godot-combat-system — Hitreact/combo layers that consume OneShot requests, upper-body Add2 masks, and nested combat sub-machines.
  • godot-debugging-profiling — Profiling and logging discipline when validating travel paths, blend values, and off-screen active culling.
Downstream / consumers
  • godot-genre-action-rpg — Locomotion + combat stance trees and ability cast OneShots built on these graph patterns.
  • godot-genre-fighting — Frame-sensitive combo auto-advance and masked upper-body attacks depend on transition and BlendTree discipline here.
  • godot-genre-shooter-fps — Aim/reload overlays, recoil OneShots, and look-at modifiers layered over locomotion BlendSpaces.
Master
  • godot-master — Library router and mirrored module entry for cross-skill discovery.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Animation Tree Mastery AI skill do?

Expert patterns for AnimationTree including StateMachine transitions, BlendSpace2D for directional movement, BlendTree for layered animations, root motion, transition conditions, advance expressions, and state machine sub-states. Use for complex character animation systems with movement blending and state management. Trigger keywords: AnimationTree, AnimationNodeStateMachine, BlendSpace2D, BlendSpace1D, BlendTree, transition_request, blend_position, advance_expression, AnimationNodeAdd2, AnimationNodeBlend2, root_motion.

Why use Godot Animation Tree Mastery on TypingMind?

Because you install it once and use it with any model. Godot Animation Tree Mastery is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Animation Tree Mastery in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/thedivergentai/GD-Agentic-Skills/tree/main/skills/godot-animation-tree-mastery. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Animation Tree Mastery?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Animation Tree Mastery?

As many as you like. As long as a model supports skills, you can use Godot Animation Tree Mastery with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Animation Tree Mastery AI skill free?

Yes. It is published on GitHub by thedivergentai under the LGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇