slow down audio in slowmo

This commit is contained in:
mehbark 2025-05-06 23:00:33 -04:00
parent 8c79049aa1
commit c1b01d2cac

View file

@ -48,6 +48,8 @@ func _process(delta: float) -> void:
var slowmo := Input.is_action_pressed("slowmo");
$SlowmoIndicator.text = "slowmo" if slowmo else ""
Engine.time_scale = slowmo_speed if slowmo else 1.0
# TODO: this is kinda comically slow BUT STOP WORKING ON THE GAME
AudioServer.playback_speed_scale = slowmo_speed if slowmo else 1.0
if not $TopLeft.is_on_screen() or not $BottomRight.is_on_screen():
camera.position.y += 10*delta