explosion SFX
This commit is contained in:
parent
d93aa1e31a
commit
9e987155d0
6 changed files with 55 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
[gd_scene format=3 uid="uid://dwayva0yscri8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://br3jskryab3if" path="res://player/explosion/hit_area.gd" id="1_yr3g8"]
|
||||
[ext_resource type="AudioStream" uid="uid://co7bf4jl7q50w" path="res://sfx/freesound_community-medium-explosion-40472.mp3" id="2_xpyis"]
|
||||
[ext_resource type="Script" uid="uid://cvcrxy30afjn7" path="res://player/explosion/audio_stream_player_3d.gd" id="3_120gr"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_5mksp"]
|
||||
height = 0.5
|
||||
|
|
@ -69,6 +71,11 @@ _data = {
|
|||
&"explode": SubResource("Animation_xpyis")
|
||||
}
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_120gr"]
|
||||
random_pitch = 1.0293022
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("2_xpyis")
|
||||
|
||||
[node name="Explosion" type="Node3D" unique_id=702514359]
|
||||
|
||||
[node name="Container" type="Node3D" parent="." unique_id=1035655414]
|
||||
|
|
@ -89,3 +96,11 @@ shape = SubResource("SphereShape3D_xpyis")
|
|||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=893547695]
|
||||
libraries/ = SubResource("AnimationLibrary_120gr")
|
||||
autoplay = &"explode"
|
||||
|
||||
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." unique_id=1450812345]
|
||||
stream = SubResource("AudioStreamRandomizer_120gr")
|
||||
volume_db = 4.0
|
||||
unit_size = 25.0
|
||||
autoplay = true
|
||||
max_distance = 100.0
|
||||
script = ExtResource("3_120gr")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue