Godot 2D Movement
Writes Godot 4 platformer and top down movement that lands, jumps and slides correctly, with a test.
Claude's review
7/10 Solid Godot 4.7 CharacterBody2D patterns and gotchas with a bundled headless landing test; familiar ground.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Godot 4.7 CharacterBody2D movement in GDScript: platformer run and jump, top-down 8-direction motion, slopes and one-way platforms, with a headless landing test. Use when a 2D controller will not move, falls through the floor or is_on_floor() is always false. Not for coyote time and jump feel (`platformer`), RigidBody2D, raycasts or 3D (`godot-physics`) or tile levels (`godot-tilemap`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: godot-2d-movement
description: >
Godot 4.7 CharacterBody2D movement in GDScript: platformer run and jump, top-down 8-direction
motion, slopes and one-way platforms, with a headless landing test. Use when a 2D controller
will not move, falls through the floor or is_on_floor() is always false. Not for coyote time and
jump feel (`platformer`), RigidBody2D, raycasts or 3D (`godot-physics`) or tile levels
(`godot-tilemap`).
---
# Godot 2D Movement (4.x)
Write `CharacterBody2D` controllers that land, run, jump and slide the way the engine expects,
then prove it with a headless test. Targets **Godot 4.7**; check `config/features` in
`project.godot` and keep an older project on its own version.
## Workflow
1. **Read the scene first.** Open the player `.tscn`: the root should be a `CharacterBody2D`
with a `CollisionShape2D`/`CollisionPolygon2D` child, and the action names the script uses
must exist under `[input]` in `project.godot`.
2. **Pick the motion mode.** Platformers keep the default `MOTION_MODE_GROUNDED`; top-down
games set `MOTION_MODE_FLOATING`, which has no floor or ceiling: every collision counts as
a wall (`is_on_wall()`, `get_wall_normal()`), and slides keep a constant speed.
3. **Set `velocity`, then call `move_and_slide()` once per `_physics_process()`.** It takes no
arguments, applies the physics delta itself, and writes back the velocity after collisions.
4. **Read results after the call:** `is_on_floor()`, `is_on_wall()`, `get_wall_normal()`,
`get_slide_collision(i)`. They describe the last `move_and_slide()`, not the current frame.
5. **Hand off feel.** Coyote time, jump buffering, variable jump height and apex tuning belong
to `platformer`; this skill supplies the Godot hooks they read (`is_on_floor()`, `velocity`).
6. **Verify before you finish** (paths are relative to this skill's folder):
- If `godot-nodes-scenes` is installed, run `python3 ../godot-nodes-scenes/scripts/check_godot_project.py <project>`
after adding or moving scenes and scripts; fix every `ERROR`.
- Copy `assets/test_character_controller.gd` to `res://tests/`, set the action names at
the top to the project's, and run
`godot --headless --path <project> --script res://tests/test_character_controller.gd -- res://player.tscn`.
Exit 0 means the body landed, jumped and ran (or, floating, moved on both axes without
drifting); each `FAIL` line names the behaviour that broke. On a fresh checkout run
`godot --headless --path <project> --import` first. To keep it in CI, use
`godot-gdscript-headless-testing`.
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit