Add methods for sound ambiant & click object

This commit is contained in:
VAILLANT Jeremy
2021-05-23 15:10:20 +02:00
parent ddebf849b2
commit d2c6aef9c5
3 changed files with 19 additions and 17 deletions
-4
View File
@@ -8,7 +8,6 @@ onready var last_btn = null
func _ready():
_display_hud_menu()
_play_ambiant_sound()
func _display_hud_menu():
var counter = 0
@@ -21,9 +20,6 @@ func _display_hud_menu():
label_id = scene.label_id()
counter = +1
func _play_ambiant_sound():
$AmbiantSound.play()
# Back to main scene
func _on_TextureButton_pressed():
print("[levels#_on_TextureButton_pressed] quit to menu")
+2
View File
@@ -733,6 +733,8 @@ shape = SubResource( 17 )
[node name="Quit" parent="." instance=ExtResource( 45 )]
[node name="ObjectFind" type="AudioStreamPlayer" parent="."]
[node name="AmbiantSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 46 )
volume_db = -15.0