slow down audio in slowmo
This commit is contained in:
parent
8c79049aa1
commit
c1b01d2cac
1 changed files with 2 additions and 0 deletions
2
main.gd
2
main.gd
|
|
@ -48,6 +48,8 @@ func _process(delta: float) -> void:
|
||||||
var slowmo := Input.is_action_pressed("slowmo");
|
var slowmo := Input.is_action_pressed("slowmo");
|
||||||
$SlowmoIndicator.text = "slowmo" if slowmo else ""
|
$SlowmoIndicator.text = "slowmo" if slowmo else ""
|
||||||
Engine.time_scale = slowmo_speed if slowmo else 1.0
|
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():
|
if not $TopLeft.is_on_screen() or not $BottomRight.is_on_screen():
|
||||||
camera.position.y += 10*delta
|
camera.position.y += 10*delta
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue