hello
i have main scene to which i have added player(CharacterBody2d) and enemy(Node2d) ,player shoots bullets
In main scene script coppypastes enemy and many enemy moving in circles
I need it when the bullet hits the enemy he dies
In scene enemy i have enemy which moves along the path2d
extends Node2D
var enemyscen = preload("res://enemy.tscn")
func _on_timer_timeout():
var instance = enemyscen.instantiate()
add_child(instance)
script in main scene