• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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: 34
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