playing with physical ledge grab

This commit is contained in:
derek
2025-06-17 13:57:04 -05:00
parent 8220db9a57
commit a33f493a04
4 changed files with 35 additions and 31 deletions

View File

@@ -13,14 +13,9 @@ func Physics_Update(delta):
standard_movement(delta)
apply_gravity(delta)
standard_jump()
if character.is_on_floor():
if character.is_on_floor() and !is_grabbing_ledge():
Transitioned.emit(self,"on foot")
enable_wall_rays()
if Input.is_action_just_pressed("sprint") and air_dash_left > 0:
air_dash_left -= 1
character.velocity += character.movement_input().normalized() * air_dash_amount
@@ -28,5 +23,13 @@ func Physics_Update(delta):
if Input.is_action_just_pressed("crouch"):
Transitioned.emit(self,"ground pound")
enable_wall_rays()
if can_wall_run():
start_wall_running()
standard_jump()
ledge_grab()
func Exit():
character.ledge_collision.disabled = true