bullet physics seem better, need to figure out collisions and collision points
This commit is contained in:
@@ -200,14 +200,14 @@ func _physics_process(delta):
|
||||
#initiate fast movement -- may be done with this block
|
||||
#change sounds with speed
|
||||
if moving_fast:
|
||||
var wind_volume = clamp( velocity.length() - 20 ,-20,10)
|
||||
var wind_volume = clamp( velocity.length() - 20 ,-80,10)
|
||||
ear_wind.volume_db = wind_volume
|
||||
#reset at apex
|
||||
|
||||
#cache fastest speed
|
||||
if abs(velocity.y) > moving_fast_top_speed:
|
||||
moving_fast_top_speed = abs(velocity.y)
|
||||
#print("TOP SPEED = " + str(moving_fast_top_speed))
|
||||
|
||||
#Land Sound
|
||||
if velocity.y < .1 and self.is_on_floor() and moving_fast == true:
|
||||
print("LAND SOUND")
|
||||
|
||||
Reference in New Issue
Block a user