godot-characterbody-2d

Implements 2D movement for Godot's CharacterBody2D with platformer and top-down patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/yyypasserby1102/ghost --skill godot-characterbody-2d-yyypasserby1102
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godot-characterbody-2d
Source: https://github.com/yyypasserby1102/ghost/tree/main/.opencode/skills/godot-characterbody-2d
Command: npx skills add https://github.com/yyypasserby1102/ghost --skill godot-characterbody-2d-yyypasserby1102

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Robust, responsive 2D movement and collision handling for Godot's CharacterBody2D across platformer and top-down styles. It consolidates best practices such as coyote time, jump buffering, and state machines to ensure consistent motion for players, NPCs, or enemies.

Core Features & Use Cases

  • Platformer patterns: coyote time, jump buffering, and variable jump height.
  • Top-down movement: 8-way movement and tank-style controls with smooth acceleration.
  • Collision handling and one-way platforms, plus straightforward state machines for behavior.
  • Ready-to-use scripts and patterns to accelerate game prototyping and long-term development.

Quick Start

Integrate the included CharacterBody2D patterns and scripts to create robust platformer and top-down movement.

Frequently Asked Questions about godot-characterbody-2d

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement coyote time and jump buffering for Godot CharacterBody2D?

Coyote time and jump buffering for Godot CharacterBody2D are implemented using frame-perfect GDScript patterns that track elapsed time after leaving ledges and queue inputs before landing, ensuring responsive platformer movement.

Can I use CharacterBody2D for both platformer and top-down movement in Godot?

CharacterBody2D supports both platformer and top-down movement in Godot. You can apply distinct GDScript patterns for 8-way movement, tank-style controls with smooth acceleration, or variable jump height based on your game style.

What is the best way to handle collisions and one-way platforms with Godot CharacterBody2D?

The best way to handle collisions and one-way platforms with Godot CharacterBody2D is by applying consolidated GDScript patterns that manage physics interactions and state machines, ensuring consistent motion for players and NPCs.

How do I set up a state machine for Godot CharacterBody2D enemies and NPCs?

You set up state machines for Godot CharacterBody2D enemies and NPCs by integrating straightforward GDScript behavior patterns, allowing you to define distinct movement logic and collision handling for different entity states.

Does this CharacterBody2D movement pattern require any Godot add-ons or dependencies?

These CharacterBody2D movement patterns require no external add-ons or dependencies. They consist entirely of ready-to-use GDScript files that can be directly integrated into your Godot project to accelerate game prototyping.

Why does my Godot CharacterBody2D feel unresponsive when navigating edges?

Godot CharacterBody2D movement feels unresponsive near edges without frame-perfect coyote time. Applying dedicated GDScript movement patterns introduces input buffering and grace periods, fixing delayed jump registration.