Im trying to do a Tower Defense map and im having some serious issues... Everything works fine on the first wave... timer counts down, wave starts... minerals are earned, kills are added... mobs dissapear when they hit the end reagion...timer resets and displays proper wave 2, but then when the timer hits 0:00 nothing.. wave 2 doesnt spawn and the timer just sits at 0:00 and nothing happens... its suppost to be set as a loop, like everytime the timer hits 0, it triggers to "start wave" ...
Heres my map, any clue as to what im doing wrong would be MUCH appreciated
Actually I'm not exactly sure what's wrong with it, but I found the culprit:
Two things:
First, when you Start the Game! you should set the Number of Spawned Units to 0 again before calling the next wave. I think that's done no where.
Secondly something is wrong with Moo. Replace that spawn with something like a Zergling and it's fine again. I just don't know what's wrong with that unit since it displays fine in the editor.
You never substract NrOfUnitsSpawnded when a unit dies so the condition Number of Units Spawned < 20 is never met. Just add Variable - Modify Number of Units Spawned: - 1 to Survival - Unit Dies
Tested, works fine. But you should probably increase tower collision so the units cant run between the towers. And some cows got stuck at the start. You can maybe add like debug expiration timer to the units.
Also, you keep running the following function every 0.35 sec
Trigger - Run Wave Unit (Ignore Conditions, Don't Wait until it finishes)
A much better way to do things is to add a unit group that will remember every unit it spawns. And every 2 sec of the gametime, check how many units are alive in that unitgroup. If 0 restart the timer. Add an other trigger that wil spawn units Wave_Types[Wave Number]. Use "For each integer" or While, to spawn nr of units you need
@PepperLoaT: Go
UGH you guys are awesome, ive been slamming my head against my desk for the last 7 hrs trying to figure out what the issue is, ill add the trigger! thanks soo much!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Im trying to do a Tower Defense map and im having some serious issues... Everything works fine on the first wave... timer counts down, wave starts... minerals are earned, kills are added... mobs dissapear when they hit the end reagion...timer resets and displays proper wave 2, but then when the timer hits 0:00 nothing.. wave 2 doesnt spawn and the timer just sits at 0:00 and nothing happens... its suppost to be set as a loop, like everytime the timer hits 0, it triggers to "start wave" ...
Heres my map, any clue as to what im doing wrong would be MUCH appreciated
Actually I'm not exactly sure what's wrong with it, but I found the culprit:
Two things:
First, when you Start the Game! you should set the Number of Spawned Units to 0 again before calling the next wave. I think that's done no where.
Secondly something is wrong with Moo. Replace that spawn with something like a Zergling and it's fine again. I just don't know what's wrong with that unit since it displays fine in the editor.
@PepperLoaT: Go UGH you guys are awesome, ive been slamming my head against my desk for the last 7 hrs trying to figure out what the issue is, ill add the trigger! thanks soo much!