• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help me making wave just after the other one

Status
Not open for further replies.
Level 2
Joined
Apr 2, 2012
Messages
17
Help me please!

Hi!

I'm making this TD.
It has 2 teams, they are figting against each other. The team who reaches the last level first wins, or if the other teams looses all their lives.
I have made an unit count, so when one of the teams have killed all their units a new wave should start. It works perfect, BUT the problem is that I cant figure out how to make wave go up. So that if we start at level one, then level 2 should start just after all units killed, but this doesnt works.

Can somebody help me?

Ps. I have linked the game.
 

Attachments

  • M-TowerDefense (1).w3x
    48.5 KB · Views: 35
Level 20
Joined
Jul 14, 2011
Messages
3,213
Save all the waves into an array and bind

Set UnitType[1] = Wave 1 creep
Set UnitType[2] = Wave 2 creep

When the enemy creeps = 0, set "Wave = Wave + 1" and spawn UnitType[Wave] creeps.
 
Status
Not open for further replies.
Top