jame581/godotprompter/player-controller
Claude Code and agent skill by jame581/godotprompter
- community
Checking that the SKILL.md file is still in the repository.
Use when building player movement — CharacterBody2D/3D patterns, movement physics, and common movement recipes
Install
npx vskill@latest install jame581/godotprompter/player-controllerSKILL.md
The same SKILL.md was published earlier as jame581/godotprompter/player-controller.
Player Controllers in Godot 4.3+
All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.
Related skills: physics-system for RigidBody, Area, raycasting, and collision shapes, 2d-essentials for TileMaps, parallax, and 2D lighting, 3d-essentials for CharacterBody3D and 3D movement setup, state-machine for movement state management, camera-system for camera follow and shake, component-system for hitbox/hurtbox integration, animation-system for animation driven by movement state, input-handling for InputMap actions and controller support, ai-navigation for enemy movement and pathfinding.
1. Core Concepts
CharacterBody vs RigidBody
| Body Type | Use For | Physics Control | Notes | |
|---|---|---|---|---|
CharacterBody2D/3D | Player, enemies, NPCs, platformers, top-down, FPS | Manual (full) | You control velocity; move_and_slide() handles collisions; predictable, responsive game feel | |
RigidBody2D/3D | Projectiles, props, debris, bouncing objects | Engine-driven | Physics engine applies forces; harder to control precisely. For a bouncing projectile set linear_velocity once and let physics resolve bounces |
Rule of thumb: Use CharacterBody when you need tight, responsive control. Use RigidBody when you want realistic physics simulation.
The Movement Loop
Every physics frame follows this order:
Always put this loop in _physics_process(delta), never _process(delta).
2. 2D Top-Down Controller
GDScript
C#
3. 2D Platformer Controller
GDScript
C#
4. 3D First-Person Controller
GDScript
C#
5. Common Movement Recipes
Beyond the basic locomotion patterns above, two recipes come up so often that they deserve their own block: Dash (timer-based velocity override for a short burst, with a cooldown and one dash per airtime) and Wall Jump (vertical wall slide + bounce off GetWallNormal() when jump is pressed). Both apply to a CharacterBody2D and slot into the standard _physics_process loop alongside gravity and horizontal movement.
See references/common-movement-recipes.md for full GDScript and C# implementations of both recipes.
6. Common Pitfalls
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/player-controller/SKILL.md
Popularity
- Repository stars
- 354
- Repository forks
- 18
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jame581/godotprompter/player-controller)