MissKerrigan
Active Member
- Reaction score
- 23
Hello,
- I got 9 towers in my tower defense
- marine
- stalker
- hydralisk
- marauder
- templar
- roach
- vulture
- immortal
- queen
Because of this, there are also 9 different wave tpyes (the same 9 units)
The marine shoots 75% damage to marine, the stalker 75% damage to stalker etc...
But that doesn't matter now
What I want to ask are 2 things
1. How do I create only the waves which are the available towers?
(in the start the players can only make marines - stalkers - hydralisks, so only this 3 units must appear as wave)
2. How do I create the waves randomly?
NOTE: if the first wave are the marines, then the next wave must be hydralisk or stalker, at last the wave which hasn't appeared yet must come, and after that the 3 wave types must come again randomly
(later in game when the player can build about 7 towers, there must come 7 different waves)
I tried to create a variable of an array size of 9 but I don't know how to create the units which are only available yet
Marloes
- I got 9 towers in my tower defense
- marine
- stalker
- hydralisk
- marauder
- templar
- roach
- vulture
- immortal
- queen
Because of this, there are also 9 different wave tpyes (the same 9 units)
The marine shoots 75% damage to marine, the stalker 75% damage to stalker etc...
But that doesn't matter now
What I want to ask are 2 things
1. How do I create only the waves which are the available towers?
(in the start the players can only make marines - stalkers - hydralisks, so only this 3 units must appear as wave)
2. How do I create the waves randomly?
NOTE: if the first wave are the marines, then the next wave must be hydralisk or stalker, at last the wave which hasn't appeared yet must come, and after that the 3 wave types must come again randomly
(later in game when the player can build about 7 towers, there must come 7 different waves)
I tried to create a variable of an array size of 9 but I don't know how to create the units which are only available yet
Marloes