rudimentary clamber
This commit is contained in:
@@ -18,9 +18,9 @@ func Physics_Update(delta):
|
||||
|
||||
enable_wall_rays()
|
||||
|
||||
if Input.is_action_just_pressed("jump") and character.jumps_remaining > 0:
|
||||
if Input.is_action_just_pressed("jump") and (character.jumps_remaining > 0 or character.can_clamber()):
|
||||
character.jumps_remaining -= 1
|
||||
character.velocity.y += character.JUMP_VELOCITY
|
||||
standard_jump()
|
||||
|
||||
if Input.is_action_just_pressed("sprint") and air_dash_left > 0:
|
||||
air_dash_left -= 1
|
||||
|
||||
Reference in New Issue
Block a user