โ† All examples

godot components

Wall slide and wall jump helper for platformers

Cap the fall speed while a character presses into a wall, jump away from walls with a push, allow a short wall coyote time and lock input toward the wall briefly after the jump.

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • baltor_test.gd
  • component.json
  • inspect_gdscript.py
  • run_tests.gd
  • test_package.py
  • tests/test_wall_slide_jump_2d.gd
  • verification/native.json
  • wall_slide_jump_2d.gd

How it works

Class
BaltorWallJump2D, extends Node
Methods
apply(velocity: Vector2, on_wall: bool, on_floor: bool, wall_normal: Vector2, input_x: float, jump_pressed: bool, delta: float) -> Vector2; filter_input(input_x: float) -> float; is_sliding() -> bool; get_lock_time_left() -> float
Signals
wall_slide_started, wall_slide_ended, wall_jumped
Exports
slide_speed, jump_push, jump_up, wall_coyote_time, control_lock_time
Placement
res://baltor/godot_components/wall_slide_jump_2d/

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • godot_parse_check_only
  • godot_gdscript_tests
  • godot_tests_reject_gutted_component
  • godot_editor_import
  • godot_contract_reflection
  • godot_readme_usage_compiles

Limits to consider

A helper called from your controller; it does not move the body or read input itself. Uses the wall normal's horizontal sign only, so sloped walls count as vertical. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.