Guy float

This commit is contained in:
Spencer Killen 2023-01-03 16:40:35 -07:00
parent b33b754954
commit 9d9c7cd868
Signed by: sjkillen
GPG Key ID: F307025B65C860BA
2 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,6 @@ func process_velocity(delta: float):
# Uses the input from MovementInput to compute and update this node's velocity # Uses the input from MovementInput to compute and update this node's velocity
# velocity_acceleration controls gradual speedup whereas velocity_friction # velocity_acceleration controls gradual speedup whereas velocity_friction
# controls gradual slowdown # controls gradual slowdown
if Dialogic.get_variable("enable_glide") == "true":
can_glide = true
# Gravity # Gravity
# You can buffer jumps by pressing releaseing the space bar and then pressing it again # You can buffer jumps by pressing releaseing the space bar and then pressing it again
if not is_on_floor(): if not is_on_floor():

View File

@ -35,7 +35,10 @@ func objective_distance() -> float:
return $ObjectiveTracker.objective_distance return $ObjectiveTracker.objective_distance
func _process(_delta): func _process(_delta):
if Dialogic.get_variable("enable_glide") == "true":
can_float = true
$OnFootPhysics.can_glide = can_glide $OnFootPhysics.can_glide = can_glide
$OnFootPhysics.can_float = can_float $OnFootPhysics.can_float = can_float