clowder/tscn/die.gd
2024-03-06 22:05:35 +01:00

11 lines
213 B
GDScript

extends CharacterBody2D
func die():
var emitter = preload("res://tscn/enemyhitbox.tscn").instantiate()
get_parent().add_child(emitter)
emitter.position = self.position
emitter.emitting = true
queue_free()