I'm making an individual defense game and I can't figure out how I can make it so that once a player starts a round, the monsters come out 1 by 1 at a fixed time.
I don't want to use waits obviously because of 2 player start at the same time it will cause problems. (waits combining)
I would use death counters as timing but the only problem i'm having is figuring out how to make it so only a certain amount of units will be made. (ex: 30 for the 1st round)
Since it's an individual defense I can't use the countdown timer and I don't want to set it to deaths of the unit because more will spawn after the 30 if they didn't already die and it will look crappy.
My one idea is having the 30 units in individual boxes for each player and moving them 1 by 1 onto the path
Is there anything else I can do i'm not thinking of?
Any help?
None.
Just add one death count to another death count other than the timer each time a unit is made, and stop making them once it reaches a certain number.
None.
Definitely. Death Counters are still the best way to go, just set up an independant one of your actual dying unit.
For example, use Cave as the number of units left to spawn, since Cave will never actually die in the map. At the beginning of each next round you can set the # of Cave deaths to your new amount and as each unit spawns, subtract 1 death.
As for the timer, you can still use Death Counts, just pick another unusued unit, like Unused Zerg Bldg 5.
Have a trigger for each player that always subtracts 1 death of Unused Zerg Bldg 5, and when it's at 0 deaths, set it to 12 * (# of seconds) you want until next spawn. For the actual spawn of a unit, just have as a condition that current player has suffered 1 deaths of Unused Zerg Bldg 5 or whatever you decide to pick.
None.
ok thanks guys i think i figured it out
None.