[Help] - Instantiating the enemy on top of itself

In Laser Defender, when my empty positions instantiate an enemy, those enemies then instantiate another enemy. So if I have 5 positions, there end up being 10 enemies on top of each other.

Project files:

My_LaserDefender.zip (2.1 MB)

@ninjachimp’s SOLUTION:

The Enemy_Spawner script was on both the Enemy_Formation gameobject and on all Position prefabs. Removing it from the Position prefabs solved the issue.

As mentioned on Discord, the Enemy_Spawner script was on both the Enemy_Formation gameobject and on all Position prefabs. Removing it from the Position prefabs solved the issue.

Privacy & Terms