|
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[1] -for loop spawns enemy[1], 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!
(comments are locked)
|
|
Try this instead: Thanks for the help reissgrant. That works perfectly, I had started experimenting with using Update as the actual loop mechanism, but couldn't figure out the counter. Thanks again!
Feb 01 '11 at 03:19 AM
NDJ23
(comments are locked)
|

You didn't highlight enough code before you hit the 101010 button.
How are you killing an enemy?