rajouter des bus pour les différents audios

This commit is contained in:
Thomas
2025-04-14 09:13:22 +02:00
parent 6517dd744e
commit e0bbf4aa35
9 changed files with 38 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
var pitch = current_speed / speed
var pitch = (current_speed / speed) * 1.35
if is_zero_approx(pitch):
pitch = 0.01
$AudioStreamPlayer2D.pitch_scale = pitch