- Home /
Question by
b2hinkle · Jun 12, 2018 at 02:30 AM ·
c#instantiatespawnienumeratorstartcoroutine
Make enemy spawn only if the previous one spawned it out of the way.
Hello. I am trying to make it so that in the void "spawnAtA," if there is already an enemy in the way of the spawn point, then wait until the enemy is out of the way to spawn the next one. I tested the game by running spawnAtA() like 30 times in my start function, and the outcome right now is that it only spawns one enemy in the beginning, and never spawns anymore, even when the enemy is out of the way.
Some help would be appreciated.
capture.png
(25.3 kB)
Comment
Your answer
Follow this Question
Related Questions
how do i make my spawn system spawn every 2 seconds then wait 10minutes? 3 Answers
Enemy spawning problem... 0 Answers
How to to spawn player, according to id? 0 Answers
Instantiation Wont Stop 1 Answer
instatiates at a bad position 1 Answer