Wall slide and wall jump helper for platformers
In your harnessGodot componentMIT
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.
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsoninspect_gdscript.pyrun_tests.gdtest_package.pytests/test_wall_slide_jump_2d.gdverification/native.jsonwall_slide_jump_2d.gd
Full files in your harness.
What it takes and gives
- 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/
Limits. 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.
Details
- Kind
- Godot component
- Engine
- Godot 4.3 or later
- Files
- 11 files, 75.9 KB
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Checked with
- Godot 4.7.2, headless
- Checks
- godot parse check only, godot gdscript tests, godot tests reject gutted component, godot editor import, godot contract reflection, godot readme usage compiles
- Techniques
- wall slide speed cap, wall jump impulse from the wall normal, coyote time, post-jump input lock
- Tags
- platformer, wall jump, wall slide, movement, characterbody2d, coyote time
- Identity
library.supply.creative_originals.3a65bc54a6ebde0e2bfef06f.ab1d302cef498e36- Version
ab1d302cef498e360d5d2ac33a64f3eab5dd1ff7af42b80721a71fa4e146b877
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.