The sounds, they are working!
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=16 format=2]
|
||||
[gd_scene load_steps=18 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/HitBox.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Enemy.gd" type="Script" id=2]
|
||||
@@ -7,6 +7,8 @@
|
||||
[ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_Flat.jpg" type="Texture" id=5]
|
||||
[ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_NRM_1K_METALNESS.jpg" type="Texture" id=6]
|
||||
[ext_resource path="res://Audio/boom.wav" type="AudioStream" id=7]
|
||||
[ext_resource path="res://Audio/80-s-clap.wav" type="AudioStream" id=8]
|
||||
[ext_resource path="res://Audio/MegaSlap.wav" type="AudioStream" id=9]
|
||||
|
||||
[sub_resource type="SphereMesh" id=6]
|
||||
|
||||
@@ -69,6 +71,25 @@ script = ExtResource( 3 )
|
||||
[node name="HeadCollision" type="CollisionShape" parent="Hurtbox"]
|
||||
shape = SubResource( 7 )
|
||||
|
||||
[node name="AudioSlap" type="AudioStreamPlayer3D" parent="Hurtbox"]
|
||||
transform = Transform( 0.491077, 0, 0, 0, 0.491077, 0, 0, 0, 0.491077, 0, 0, 0 )
|
||||
stream = ExtResource( 8 )
|
||||
attenuation_model = 2
|
||||
unit_db = 80.0
|
||||
max_db = 6.0
|
||||
bus = "SFX"
|
||||
|
||||
[node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="Hurtbox"]
|
||||
transform = Transform( 0.491077, 0, 0, 0, 0.491077, 0, 0, 0, 0.491077, 0, 0, 0 )
|
||||
stream = ExtResource( 9 )
|
||||
attenuation_model = 2
|
||||
unit_db = 60.0
|
||||
max_db = 4.0
|
||||
pitch_scale = 2.0
|
||||
bus = "SFX"
|
||||
emission_angle_enabled = true
|
||||
doppler_tracking = 2
|
||||
|
||||
[node name="EnemyCollision" type="CollisionShape" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.094023, 0 )
|
||||
shape = SubResource( 8 )
|
||||
|
Reference in New Issue
Block a user