From a7b42bd030efaaa70769cda2e368a42b7ead4942 Mon Sep 17 00:00:00 2001 From: rom Date: Mon, 26 Apr 2021 23:56:42 +0200 Subject: pause & puzzle solver --- scenes/background_music.tscn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scenes/background_music.tscn') diff --git a/scenes/background_music.tscn b/scenes/background_music.tscn index bad9601..221be14 100644 --- a/scenes/background_music.tscn +++ b/scenes/background_music.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=8 format=2] [ext_resource path="res://sfx/sound_track_1.wav" type="AudioStream" id=1] [ext_resource path="res://scenes/background_music.gd" type="Script" id=2] @@ -6,11 +6,13 @@ [ext_resource path="res://sfx/hover.wav" type="AudioStream" id=4] [ext_resource path="res://sfx/click.wav" type="AudioStream" id=5] [ext_resource path="res://sfx/click2.wav" type="AudioStream" id=6] +[ext_resource path="res://sfx/loose_heart.wav" type="AudioStream" id=7] [node name="Parent" type="Node"] script = ExtResource( 2 ) [node name="Sound1" type="AudioStreamPlayer" parent="."] +pause_mode = 2 stream = ExtResource( 1 ) volume_db = -13.867 autoplay = true @@ -30,4 +32,7 @@ volume_db = -27.647 stream = ExtResource( 6 ) volume_db = -38.389 +[node name="LoseHeart" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 7 ) + [connection signal="finished" from="Sound1" to="." method="_on_AudioStreamPlayer_finished"] -- cgit