Added soul collection sound

This commit is contained in:
2024-02-16 22:59:23 +01:00
parent d081686275
commit 2b7c1028cc
2 changed files with 28 additions and 17 deletions

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=13 format=3 uid="uid://dl4vcp04t8iyr"]
[gd_scene load_steps=14 format=3 uid="uid://dl4vcp04t8iyr"]
[ext_resource type="Texture2D" uid="uid://cdoxs0s8xh1b3" path="res://particle/FadeOut.tres" id="1_dd0n2"]
[ext_resource type="Texture2D" uid="uid://c3wx3cgn8x62m" path="res://assets/particles/particles-single.png" id="1_hhudy"]
[ext_resource type="Script" path="res://item/soul/Soul.gd" id="1_mm7cb"]
[ext_resource type="Texture2D" uid="uid://cfkwtmj6tc3wa" path="res://item/soul/color_ramp.tres" id="3_ibw0j"]
[ext_resource type="AudioStream" uid="uid://l6d76tn8ys5n" path="res://assets/audio/effects/Games-Video-Event-Collect-Item.wav" id="5_cxtbb"]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_uyeuh"]
lifetime_randomness = 0.15
@ -123,4 +124,10 @@ monitorable = false
[node name="SphereShape" type="CollisionShape3D" parent="Area"]
shape = SubResource("SphereShape3D_rytrf")
[node name="Sound" type="AudioStreamPlayer3D" parent="."]
unique_name_in_owner = true
stream = ExtResource("5_cxtbb")
max_distance = 20.0
bus = &"Effects"
[connection signal="body_entered" from="Area" to="." method="on_body_entered"]