How do I duplicate something?

4.2.1-stable-linux

I am trying to duplicate an enemy every 10 seconds, but I can’t figure out how to use the duplicate() method.

I think what you want to do is instantiate the scene every 10 seconds.

Func spawn_enemy():
  Var enemy = load("res://enemy.tscn").instantiate()
  Add_child(enemy)
1 Like

Thanks! I ended up figuring this out on my own, but I appreciate the help.