ajout de signal dying

This commit is contained in:
Victor Turgeon
2022-10-12 11:08:26 -04:00
parent d053eca147
commit 6469c6969f
4 changed files with 30 additions and 19 deletions

View File

@@ -1,5 +1,6 @@
extends KinematicBody
signal dying
var hit_acceleration = 10
var hit_speed = 100
@@ -47,6 +48,7 @@ func get_shot(hitboxOwner):
die()
func die():
emit_signal("dying")
particles.emitting = true
hurtbox.disabled = true
hitbox.disabled = true