I need some help with a script I am trying to write.
I'd like to cycle through this array of gameobjects, activating the next enemy in the array every X seconds.
The problem is this:
-for loop spawns x number of enemies after x seconds.
-player kills enemy
-for loop spawns enemy, instead of the next enemy in the array
How do I make the loop continue through the objects, before starting back at the beginning?
Thanks for any input!
Try this instead:
answered Feb 01 '11 at 12:32 AM