#How do I instantiate an enemy along a path 2D?
6 messages · Page 1 of 1 (latest)
I tried to do that, but the code isnt working, do u think u could take a look? func _ready() -> void:
create_enemies_on_path($Path2D/PathFollow2D.progress_ratio.randf_range(0, 1))
func create_enemies_on_path(pos):
var create_enemy = enemy_preload.instantiate()
create_enemy.position = pos
add_child(create_enemy)
this is my error
Oh, i'm just stupid
It says right there it can't find the node. Are you certain that the path is correct?