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
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 reportWhat 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.

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
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.zipWhat 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
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
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.
Godot Physics
Use Godot 4.7 physics bodies and detection in 2D and 3D: RigidBody, StaticBody, Area, and CharacterBody; collision layers vs masks; contact/overlap signals; and raycasts (RayCast nodes and direct space-state queries).
Godot TileMap
Tile-based 2D levels in Godot 4.7 with TileMapLayer: collision and navigation on tiles, terrain autotiling and editing cells from code.
Godot Animation
Animate in Godot 4.7 with AnimationPlayer clips, AnimationTree state machines and blend spaces, and code-driven Tweens.
Game Camera Systems
Cameras that feel good: 2D follow with deadzone and look-ahead, 3D orbit with collision, first-person look, multi-target framing and shake.
More from Awesome Gamedev Agent Skills
See all 42Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
Create Game Assets
Plan, generate, source, normalize, and validate cohesive visual game assets.
Similar skills
Claude Code Game Studios
Turns Claude Code into a full game studio: 49 agents and 72 workflow skills arranged like a real studio hierarchy.
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Godot AI
Production-grade MCP server and editor plugin for Godot 4.7+: 46 tools and 120+ operations for scenes, nodes, scripts, UI and more.