You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.7 KiB
42 lines
1.7 KiB
[gd_scene load_steps=7 format=3 uid="uid://dwuwgb8cv7hcr"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://bviyapfbqgaac" path="res://audio/sfx/test/Variant1.wav" id="1_lrjii"]
|
|
[ext_resource type="AudioStream" uid="uid://blqybxbdbamao" path="res://audio/sfx/test/Variant5.wav" id="1_otqyj"]
|
|
[ext_resource type="AudioStream" uid="uid://b5w7d4a1jj2e1" path="res://audio/sfx/test/Variant2.wav" id="2_nhc1o"]
|
|
[ext_resource type="AudioStream" uid="uid://cujq3507gplyq" path="res://audio/sfx/test/Variant3.wav" id="3_sqonn"]
|
|
[ext_resource type="AudioStream" uid="uid://c3ui5n1nd67r5" path="res://audio/sfx/test/Variant4.wav" id="4_a3hjs"]
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_nwh3n"]
|
|
random_pitch = 1.15
|
|
streams_count = 5
|
|
stream_0/stream = ExtResource("1_lrjii")
|
|
stream_1/stream = ExtResource("2_nhc1o")
|
|
stream_2/stream = ExtResource("3_sqonn")
|
|
stream_3/stream = ExtResource("4_a3hjs")
|
|
stream_4/stream = ExtResource("1_otqyj")
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
|
|
[node name="MultiRandom" type="Button" parent="."]
|
|
offset_left = 695.0
|
|
offset_top = 216.0
|
|
offset_right = 992.0
|
|
offset_bottom = 383.0
|
|
text = "Press to make random Sound"
|
|
|
|
[node name="MultiRandomPlayer" type="AudioStreamPlayer" parent="MultiRandom"]
|
|
stream = SubResource("AudioStreamRandomizer_nwh3n")
|
|
|
|
[node name="Single" type="Button" parent="."]
|
|
offset_left = 117.0
|
|
offset_top = 202.0
|
|
offset_right = 414.0
|
|
offset_bottom = 369.0
|
|
text = "Press to make single Sound"
|
|
|
|
[node name="SinglePlayer" type="AudioStreamPlayer" parent="Single"]
|
|
stream = ExtResource("1_otqyj")
|
|
|
|
[connection signal="pressed" from="MultiRandom" to="MultiRandom/MultiRandomPlayer" method="play"]
|
|
[connection signal="pressed" from="Single" to="Single/SinglePlayer" method="play"]
|