diff --git a/Player.gd b/Player.gd index 67b4a81..8877989 100644 --- a/Player.gd +++ b/Player.gd @@ -1,6 +1,6 @@ extends KinematicBody -export var speed = 40 +export var speed = 20 export var h_acceleration = 6 export var air_acceleration = 1 diff --git a/Scenes/Enemy.gd b/Scenes/Enemy.gd index 660f3df..2e7a99b 100644 --- a/Scenes/Enemy.gd +++ b/Scenes/Enemy.gd @@ -42,8 +42,8 @@ func get_slapped(slap_level, slap_kill, slap_vector): hitbox.disabled = false func get_shot(hitboxOwner): - hitboxOwner.die() Explosion.play() + hitboxOwner.die() die() func die(): diff --git a/Scenes/Enemy.tscn b/Scenes/Enemy.tscn index d0d5baa..cc2b1fa 100644 --- a/Scenes/Enemy.tscn +++ b/Scenes/Enemy.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=15 format=2] +[gd_scene load_steps=16 format=2] [ext_resource path="res://Scripts/HitBox.gd" type="Script" id=1] [ext_resource path="res://Scenes/Enemy.gd" type="Script" id=2] @@ -101,7 +101,10 @@ scale_amount_curve = SubResource( 15 ) [node name="DeathTimer" type="Timer" parent="."] wait_time = 3.0 -[connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"] [node name="Explosion" type="AudioStreamPlayer3D" parent="."] stream = ExtResource( 7 ) +unit_db = 80.0 +max_db = 6.0 bus = "SFX" + +[connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"]