This commit is contained in:
Spencer Killen 2022-12-11 17:18:29 -07:00
parent 04cec5149a
commit dc7e309ef2
Signed by: sjkillen
GPG Key ID: F307025B65C860BA
2 changed files with 3 additions and 5 deletions

View File

@ -10,9 +10,6 @@ func jump():
var on_floor = $"../OnFootPhysics/Floor".is_on_floor
var jump_intent = $"../MovementInput".jump_intent
measure = min(measure, phys.velocity.y)
print(measure)
if jump_intent and not on_floor and not played_takeoff:
$Jump.play()
played_takeoff = true

View File

@ -95,8 +95,9 @@ func process_falling():
if not $Floor.is_on_floor:
is_falling = true
just_landed = false
just_landed_medium = false
just_landed_terminally = false
if velocity.y <= 5.0:
if velocity.y <= -5.0:
is_falling_medium = true
if is_falling_velocity_terminal():
is_falling_terminally = true