- Home /
Enemies in a row
So I just started coding in unity and now I've made a simple space shooter-ish game where an enemy comes from right to left. After the enemy exits the screen he resets and comes back from the right in a random y position. How do I make it so that 3 or so enemies come in a row?
Answer by RPGstandard · Jul 30, 2013 at 07:44 AM
Its just a matter of making a function that checks if the enemy has gone off the screen and then spawns a number of the same prefab in the position that you want them to.
this might help
http://docs.unity3d.com/Documentation/ScriptReference/Object.Instantiate.html
Your answer
Follow this Question
Related Questions
Can you name something that you spawned with a spawner script? 1 Answer
c# enemy's not spawning 1 Answer
How to spawn more enemies once I've killed one? 1 Answer
Spawn Multiple Monsters 1 Answer