tweaked and maybe broke ledge grab
This commit is contained in:
@@ -13,7 +13,7 @@ func Physics_Update(delta):
|
||||
standard_movement(delta)
|
||||
apply_gravity(delta)
|
||||
|
||||
if character.is_on_floor() and !is_grabbing_ledge():
|
||||
if character.is_on_floor():
|
||||
Transitioned.emit(self,"on foot")
|
||||
|
||||
if Input.is_action_just_pressed("sprint") and air_dash_left > 0:
|
||||
@@ -23,13 +23,18 @@ func Physics_Update(delta):
|
||||
if Input.is_action_just_pressed("crouch"):
|
||||
Transitioned.emit(self,"ground pound")
|
||||
|
||||
if Input.is_action_just_pressed("interact"):
|
||||
character.ledge_collision.disabled = false
|
||||
Transitioned.emit(self,"ledge grab")
|
||||
|
||||
enable_wall_rays()
|
||||
|
||||
if can_wall_run():
|
||||
start_wall_running()
|
||||
|
||||
standard_jump()
|
||||
ledge_grab()
|
||||
|
||||
|
||||
|
||||
func Exit():
|
||||
character.ledge_collision.disabled = true
|
||||
|
||||
Reference in New Issue
Block a user