11 lines
213 B
GDScript
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()
|