Ok, so Im doing this TD, and its all working great, the anti blocking works great, and all units fallow the user made path. All the units spawn with no issues. 10 units per wave. Until I get to the Boss wave. I have a repeat loop for all the non boss units and works great, but should not loop the boss unit. And for some weird reason, it is. So Im getting 10 bosses spawned in wave 10, and I only want 1. Here are the triggers:
Global variables used:
Wave Unit Type = No Game Link <Game Link - Unit[10]>
Current Wave = 0 <Integer>
In my eyes it look perfect (lol), but of course, I know there has to be something wrong.
Can someone please point it out? This is driving me crazy.... D:
From a cursory look, it looks like you might have an off by 1 error. You start the wave counter at 0 and then display to the user as 0 + 1, but your current wave check checks for wave 10 (which is actually wave 11, becuase you started at wave 0, not wave 1). So try changing Current Wave >= 10 to >= 9.
From a cursory look, it looks like you might have an off by 1 error. You start the wave counter at 0 and then display to the user as 0 + 1, but your current wave check checks for wave 10 (which is actually wave 11, becuase you started at wave 0, not wave 1). So try changing Current Wave >= 10 to >= 9.
This...
If you have an array of unit types and the indexes go from 0 to 9 with 9 being your boss, you just need to change >= 10 to >= 9.
OMG TYTYTYTYTYTYTYTY
LOL I can't believe I missed such a little thing :P
That's why, IMO, when you can't find the error, asking someone else will work 90% of the time.
TY again.
Now I have 1 more little question.
I want to add at least 30 more waves.
But without making a lot more triggers, how could I do it from the two I have there, making the Wave 10 Boss the one for bosses (1 boss every 10 waves) and the other one, the one for non bosses? Is it possible or is it just safer and better to do it with more triggers?
I hope you guys can understand my question :P
Ok, so Im doing this TD, and its all working great, the anti blocking works great, and all units fallow the user made path. All the units spawn with no issues. 10 units per wave. Until I get to the Boss wave. I have a repeat loop for all the non boss units and works great, but should not loop the boss unit. And for some weird reason, it is. So Im getting 10 bosses spawned in wave 10, and I only want 1. Here are the triggers:
Global variables used:
Wave Unit Type = No Game Link <Game Link - Unit[10]>
Current Wave = 0 <Integer>
Wave 10 Boss (all starts with boss)
In my eyes it look perfect (lol), but of course, I know there has to be something wrong.
Can someone please point it out? This is driving me crazy.... D:
@Veledesh: Go
From a cursory look, it looks like you might have an off by 1 error. You start the wave counter at 0 and then display to the user as 0 + 1, but your current wave check checks for wave 10 (which is actually wave 11, becuase you started at wave 0, not wave 1). So try changing Current Wave >= 10 to >= 9.
This...
If you have an array of unit types and the indexes go from 0 to 9 with 9 being your boss, you just need to change >= 10 to >= 9.
OMG TYTYTYTYTYTYTYTY
LOL I can't believe I missed such a little thing :P
That's why, IMO, when you can't find the error, asking someone else will work 90% of the time.
TY again.
Now I have 1 more little question.
I want to add at least 30 more waves.
But without making a lot more triggers, how could I do it from the two I have there, making the Wave 10 Boss the one for bosses (1 boss every 10 waves) and the other one, the one for non bosses? Is it possible or is it just safer and better to do it with more triggers?
I hope you guys can understand my question :P