Command Palette

Search for a command to run...

Назад к скиллам
скилл № 73825

godot-characterbody-2d

Expert patterns for CharacterBody2D including platformer movement (coyote time, jump buffering, variable jump height), top-down movement (8-way, tank…

БесплатноЗапускает вложенные скрипты
thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Установить godot-characterbody-2d в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

CharacterBody2D Implementation

Expert CharacterBody2D feel systems — not beginner move_and_slide tutorials.

NEVER Do

  • NEVER use RigidBody2D for standard player controllers — RigidBody is for physics-simulated objects. For responsive, feel-driven player movement, always use CharacterBody2D.
  • NEVER multiply velocity by delta before move_and_slide() — move_and_slide() handles delta internally. Manual multiplication makes movement framerate-dependent.
  • NEVER use global_position updates for gameplay movement — Use velocity + move_and_slide(). Direct position hacks bypass collision, floor snap, and one-way rules.
  • NEVER "fall through" one-ways by nudging position.y — Use one-way collision shapes + layer/mask (and temporary mask disable / collide-with-areas patterns). See godot-2d-physics.
  • NEVER ignore floor/wall/ceiling state right after move_and_slide() — is_on_floor(), is_on_wall(), is_on_ceiling(), and slide collisions drive coyote, wall jump, and bonk logic.
  • NEVER rely on default floor_snap_length for fast stair-climbing — Default snapping is too small for high-velocity characters. Use custom raycast-based stair logic.
  • NEVER apply gravity while is_on_floor() is true — Constant downward force causes micro-jitter and fights floor-snap. Reset velocity.y on land.
  • NEVER use Area2D as primary ground detection — Prefer is_on_floor() / shapecasts; Areas are for triggers, not floor truth.
  • NEVER forget ceiling bonk — Reset velocity.y when is_on_ceiling() or the player floats into the ceiling until gravity wins.
  • NEVER round physics positions for pixel art — Keep physics high-precision; round sprite positions in _process only (subpixel_movement_rounding.gd).
  • NEVER spam queue_free() for hordes — Pool bullets/enemies when spawn/despawn is frequent (performance_character_pooling.gd).

When to Use CharacterBody2D

Need Body
Feel-driven player / NPC / enemy locomotion CharacterBody2D
Rolling debris, ragdoll-ish props, force piles RigidBody2D
Static level colliders StaticBody2D / TileMapLayer physics

Decision Tree → MANDATORY Scripts

Task Do First Then (optional) Do NOT Load
Platformer foundation (coyote, buffer, accel/friction) expert_physics_2d.gd — Inline tutorial controllers
Isolate coyote/buffer only frame_perfect_coyote_time.gd — Duplicate coyote blocks in SKILL
Variable jump / short hop variable_jump_height.gd — —
Slopes / stairs slope_stair_snapping.gd godot-raycasting-queries —
Wall slide / wall jump wall_slide_jump_refined.gd or wall_jump_controller.gd — Both unless comparing
Dash + i-frames dash_state_controller.gd or dash_controller.gd — Both unless comparing
Air control polish aerial_drift_acceleration.gd — —
Ceiling stick / bonk ceiling_bonk_detection.gd — —
Knockback / wind impulses impulse_response_handler.gd — —
Pixel-art visuals subpixel_movement_rounding.gd — Rounding global_position in physics
Many AI bodies performance_character_pooling.gd — —
One-way platforms Tile/StaticBody one-way + layers/masks godot-tilemap-mastery / godot-2d-physics position.y += 1 drop-through hacks
Top-down / tank locomotion movement-recipes.md — Inline 8-way tutorials
Jump arc debug tuning game_feel_profiler.gd — —
Animation root motion root_motion_controller.gd godot-2d-animation —

Golden path: Read expert_physics_2d.gd first. Add dash/wall/jump scripts only after that controller is in place. Do not re-inline coyote/buffer/accel loops in the scene when the script already owns

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/migration-notes.md
  • references/movement-recipes.md
  • scripts/aerial_drift_acceleration.gd
  • scripts/ceiling_bonk_detection.gd
  • scripts/dash_controller.gd
  • scripts/dash_state_controller.gd
  • scripts/expert_physics_2d.gd
  • scripts/frame_perfect_coyote_time.gd
  • scripts/game_feel_profiler.gd
  • scripts/impulse_response_handler.gd
  • scripts/performance_character_pooling.gd
  • scripts/root_motion_controller.gd
  • scripts/slope_stair_snapping.gd
  • scripts/subpixel_movement_rounding.gd
  • scripts/variable_jump_height.gd
  • scripts/wall_jump_controller.gd
  • scripts/wall_slide_jump_refined.gd

FAQ

Что делает скилл godot-characterbody-2d?

Expert patterns for CharacterBody2D including platformer movement (coyote time, jump buffering, variable jump height), top-down movement (8-way, tank controls), collision handling, one-way platforms, and state machines. Use for player characters, NPCs, or enemies. Trigger keywords: CharacterBody2D, move_and_slide, is_on_floor, coyote_time, jump_buffer, velocity, get_slide_collision, one_way_platforms, state_machine.

Как установить скилл godot-characterbody-2d?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-characterbody-2d запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-characterbody-2d с