first i creating instance
onready var enemy = load("Enemy.tscn").instance()
then i adding it as a child
func spawnenemy():
add_child(enemy)
then i removing it (if hp = 0) with the this line of code and immediately creating new instance again in case i want to spawn new enemy with add_child(enemy)
func removeenemy():
enemy.queue_free()
enemy = load("Enemy.tscn").instance()
am i doing it right?