tweaks
This commit is contained in:
@@ -182,8 +182,7 @@ func _physics_process(delta):
|
||||
var wind_volume = clamp( velocity.length() - 20 ,-20,0)
|
||||
ear_wind.volume_db = wind_volume
|
||||
#reset at apex
|
||||
if abs(velocity.y) < 0:
|
||||
moving_fast_top_speed = 0.0
|
||||
|
||||
#cache fastest speed
|
||||
if abs(velocity.y) > moving_fast_top_speed:
|
||||
moving_fast_top_speed = abs(velocity.y)
|
||||
@@ -191,7 +190,7 @@ func _physics_process(delta):
|
||||
#Land Sound
|
||||
if velocity.y < .1 and self.is_on_floor() and moving_fast == true:
|
||||
print("LAND SOUND")
|
||||
var land_volume = clamp( moving_fast_top_speed - 20 ,-20,0)
|
||||
var land_volume = clamp( moving_fast_top_speed - 20 ,-10,0)
|
||||
land_sound.volume_db = land_volume
|
||||
land_sound.play()
|
||||
ear_wind.stop()
|
||||
|
||||
Reference in New Issue
Block a user