Skip to main content
GDT
SkillFreeBy GameSkill · tuned

Godot 2D Movement

/godot-2d-movement

2D character movement in Godot 4.7 with CharacterBody2D: platformer jumping, top-down motion, slopes and reading collisions.

License
Apache-2.0
By
By GameSkill
Download ZIP

Part of

Awesome Gamedev Agent Skills

77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.

Tested by GameSkill

25/25 checks passed on Godot 4.7.2 (2026-10-28): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

What this skill does

When it triggers

7 with CharacterBody2D and move_and_slide(): platformer run/jump with gravity, top-down 8-direction motion, slope handling, and reading collisions.tscn with a CharacterBody2D. …

GameSkill's tested copy

GameSkill's tuned build of this skill: the skill files from commit 184b72be0288, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.

License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Godot 2D Movement

Self-check

  • 角色用 CharacterBody2D,并带 CollisionShape2D / Uses CharacterBody2D with a CollisionShape2D
  • 先设 velocity 再调用无参数的 move_and_slide(),没有乘 delta / Sets velocity, then calls move_and_slide() with no arguments and no extra delta
  • 移动代码写在 _physics_process 里 / Movement runs in _physics_process
  • 落地后 is_on_floor() 为 true,只有落地或土狼时间内才能跳 / is_on_floor() is true after landing; jumps only when grounded or within coyote time
  • 俯视角用 MOTION_MODE_FLOATING,斜向速度不超过设定速度 / Top-down uses MOTION_MODE_FLOATING and diagonal speed stays at the set speed

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/godot-2d-movement/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot-2d-movement.zip -o /tmp/gameskill-godot-2d-movement.zip
unzip -oq /tmp/gameskill-godot-2d-movement.zip -d .claude/skills
rm /tmp/gameskill-godot-2d-movement.zip

What you get

  • Worked steps: Platformer controller; Top-down 8-direction movement; Reading slide collisions after moving; Coyote time
  • A pitfalls section with the mistakes to avoid
  • Bundled 1 reference doc the agent reads when needed
  • Written for Godot 4.7

Good fit

  • Coding a 2D player or enemy controller, a platformer or top-down character
  • Fixing move_and_slide()/ is_on_floor() behavior in a .tscn with a CharacterBody2D

Try this prompt

Prompt
Write a CharacterBody2D platformer controller that handles slopes and coyote time.

About this skill

Implement 2D kinematic character movement in Godot 4.7 with CharacterBody2D and move_and_slide(): platformer run/jump with gravity, top-down 8-direction motion, slope handling, and reading collisions. Use when coding a 2D player or enemy controller, a platformer or top-down character, or fixing move_and_slide()/ is_on_floor() behavior in a .tscn with a CharacterBody2D.

From the godot-2d-movement SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.

What's inside

  • Platformer controller (gravity, jump, slopes)
  • Top-down 8-direction movement
  • Reading slide collisions after moving
  • Coyote time (forgiving jump just after leaving a ledge)

Requirements

  • Godot 4.7

FAQ

MATCHED PRO KIT$8.25/mo

Roguelike Deckbuilder Starter (Godot 4 + Web)

Stop staring at an empty project: a complete white-label playable Roguelike Deckbuilder template in Godot 4 & Web HTML5 — Opening 3-Slot Blessings, Non-Crossing DAG Map, Hand-Arc Combat, 50% Boss Phase Lock, Campfire/Shop Purge, atomic SaveStore, EN/ZH Localization, balanced JSON/CSV tables & 1,000-run HTML balance CLI.

  • Runnable Godot 4.3+ project (project.godot, Main.tscn, GameBus, atomic SaveStore & EN/ZH LocService)
  • Playable zero-build Web HTML5 starter with hand arc, 2f hit-flash, micro shake & checksummed save

Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

More from Awesome Gamedev Agent Skills

See all 42

Similar skills