monke
This commit is contained in:
parent
64083f315a
commit
9f95f1d0fa
@ -1,6 +1,6 @@
|
||||
extends KinematicBody
|
||||
|
||||
export var speed = 40
|
||||
export var speed = 20
|
||||
|
||||
export var h_acceleration = 6
|
||||
export var air_acceleration = 1
|
||||
|
@ -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():
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user