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

View File

@@ -604,7 +604,7 @@ target_position = Vector2(1, -32)
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_o8ske")
volume_db = -15.359
volume_db = -4.687
autoplay = true
attenuation = 2.0
playback_type = 1