/godot-dev:godot-2d-controllerfrom godot-dev
Provides a 2D character controller for Godot with platformer (coyote time, jump buffer, slopes, moving platforms) and top-down movement. Attach to CharacterBody2D.
Ships in godot-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One motor writes the position; the jump comes from an apex height and a time, not from tuned constants. Everything else — sprites, sounds, the camera, a test — reads the motor and never moves the body.
| The situation | Read |
|---|---|
| A side-view courier: run, jump, coyote time, jump buffer, a short hop | resources/platformer_motor_2d.gd, then reference/platformer.md |
| The jump falls short of the level; how wide a gap may be; jump numbers before levels | reference/platformer.md → "Jump from numbers", and the probe below |
| Creeping on a slope, run/fall flicker walking downhill, a ramp that acts like a wall | reference/platformer.md → "Floors and slopes" |
| One-way ledges, dropping through, moving platforms | reference/platformer.md → "One-way platforms", "Moving platforms"; resources/moving_platform_2d.gd |
| Seen from above: eight directions, friction, sliding along walls, facing | resources/topdown_motor_2d.gd, then reference/topdown.md |
| The sprite should follow run, jump and fall | resources/motor_sprite_bridge_2d.gd; reference/platformer.md → "Bridge to sprites" |
| A courier on a rooftop to play right now | templates/courier_2d.tscn |
| Collision layers, tunnelling, a ray that misses | godot-physics |
| Input actions, rebinding, touch | godot-input |
SpriteFrames from a frame set; pixel-art import | godot-2d-sprites |
| Animation trees and state machines | godot-animation |
| The tiles the courier runs on | godot-tilemap |
| A camera that follows, look-ahead, jitter | godot-camera |
| Which genre this is; level metrics; journeys an agent can replay | godot-gameplay · godot-play-harness |
Copy resources/platformer_motor_2d.gd (or topdown_motor_2d.gd) onto the courier's
CharacterBody2D. No class_name: attach it, or preload() it.
| Part | Platformer | Top-down |
|---|---|---|
| intent, set by gameplay or a test | move_axis (-1..1), jump_held, press_jump(), release_jump(), press_drop() | move_vector (length 0..1) |
| intent from input | read_input on: action_left, action_right, action_jump, action_down | read_input on: four actions and deadzone |
| read-only state | motion_state (idle run rise fall) | motion_state (idle walk), facing |
| signals | jumped, landed, left_floor, state_changed | state_changed, facing_changed |
| tunables | every number is an @export, grouped Run, Jump, Floor, One-way, Input | max_speed, accel, friction, eight_way |
The actions default to the built-in ui_left, ui_right, ui_accept and ui_down (and
ui_up), which every project has; replace them with the game's own actions. An action missing
from the InputMap reads as released, with no error. With read_input on the motor overwrites
the intent every tick: turn it off when gameplay, an AI or a journey writes the intent, or there
are two writers.
Set jump_height, time_to_apex and time_to_land; the motor derives take-off speed
2h / t_apex, rise gravity 2h / t_apex^2 and fall gravity 2h / t_land^2. Then measure what
the motor actually does, because a fixed step lands about v0 * dt / 2 short (68.8 px of an asked
72 at 60 Hz):
python3 scripts/motor_probe_2d.py --jump-height 72 --time-to-apex 0.36 --reach 120,0 --reach 96,48 --miss 200,0
scripts/motor_probe_2d.py builds each level in code in a throwaway project outside the
repository, runs the motor headless at a fixed 60 Hz, records every tick and judges the
trajectory. Each scenario runs in its own World2D, so none sees another's bodies.
python3 scripts/motor_probe_2d.py # the shipped platformer motor
python3 scripts/motor_probe_2d.py --motor path/to/courier_motor.gd --set coyote_time=0.08
python3 scripts/motor_probe_2d.py --kind topdown --set friction=600
python3 scripts/motor_probe_2d.py --selftest
| Check | Holds when |
|---|---|
| lands, apex, hop | the courier rests on the floor; the apex is within 8% of jump_height; a one-tick tap rises less than half |
| coyote-in, coyote-out | a press half the window after walking off a ledge jumps; three ticks past it, none |
| buffer-in, buffer-out | the same for a press before landing; the jump fires on the tick after touch-down |
| slope-rest, slope-climb, slope-descend | no drift at rest on 30 degrees; walks up it; stays on the floor walking down |
| one-way-up, drop-through | jumps up through a one-way ledge and stands on it; press_drop() falls back through |
| moving-platform | carried within 1 px of the platform's displacement |
| input, bridge | the actions drive the motor; the sprite plays every state and flips running left |
| reach / miss GAP,RISE | the full-speed jump lands on, or misses, a ledge GAP px away and RISE px up |
| td-axis, td-diagonal, td-stop, td-wall, td-input, td-facing | top speed, no diagonal speed-up, the stopping distance, wall sliding, the actions, eight-way facing |
The last line is the verdict, motor_probe_2d: PASS|FAIL|UNVERIFIED ...: exit 0, 2 (a check
failed, each on a FAIL line), 3 (no Godot, a timeout, no sentinel: nothing was judged), 1 a
usage error. An engine or script error in the run is a FAIL engine line, never a pass. Godot
comes from --godot PATH or GODOT_BIN. The --motor script must keep the intent API above
and is run with read_input off.
move_and_slide() and nothing else sets position or
velocity on the courier: not an AnimationPlayer track, not a knockback script, not a
camera. A dash or a knockback is a state inside the motor.floor_max_angle comes from the steepest slope in the
levels and floor_snap_length from the run speed (auto_snap does the second); probe both
against the real slope before tuning anything else._physics_process; a probe or a journey counts
ticks. A window in seconds is a window in ticks at the project's
physics/common/physics_ticks_per_second.motion_state; they never decide whether the courier is on the floor.reference/platformer.md (opens in a new tab)reference/topdown.md (opens in a new tab)resources/motor_sprite_bridge_2d.gd (opens in a new tab)resources/moving_platform_2d.gd (opens in a new tab)resources/platformer_motor_2d.gd (opens in a new tab)resources/topdown_motor_2d.gd (opens in a new tab)scripts/motor_probe_2d.py (opens in a new tab)templates/courier_2d.tscn (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
28 skills in this plugin
/godot-2d-renderingGodot 2D look: draw order, z_index and y-sort, CanvasLayer, 2D lights and shadows, canvas shaders, Parallax2D, pixel-perfect scaling./godot-2d-rigA layered 2D character into Godot: rig2d.json to Skeleton2D, Bone2D and weighted Polygon2D parts, cut-out animation, 2D IK./godot-2d-spritesSprite frames into Godot: frames.json to SpriteFrames, AnimatedSprite2D, sheet slicing, pivots, filtering and import for pixel art.npx claudepluginhub tipoli5890/game-studio --plugin godot-dev