playing with physical ledge grab
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user