- Joined
- Mar 29, 2011
- Messages
- 3,764
As I was checking the maps in the pending map's section, I found some defense/tower defense maps having so many triggers for levels. This is very tasky that is why, I intend to create this simple tutorial on how to create levels or spawns with few triggers at hand. | |||||||
ContentsInitialization of the Game Setting Up the Creeps Initial Spawns The Creep Levels or Creep Spawns End Level Next Level Download the Demo Map | |||||||
The TutorialInitialization of the GameThe triggers below are included during the initialization of the first spawns Init Trigger
Setting Up the Creeps Before we begin everything on creating levels, we must set up our creeps. The variables that you should have here are: 1. creepSpawnType[] - Unit-Type Array() -- Sets the kind of creeps to spawn in each level 2. goldLevelGiven[] - Integer Array () -- sets the gold given to the player after each round. 3. gold_LevelText[] - String Array() -- sets the text of gold amount recieved by the player after each round 4. creepNumLevel[] - Integer Array() -- Sets the number of creeps to spawn in each level. 5. levelWarnings[] - String Array() -- Sets the warning text to show to the player every time a new level is spawned. 6. LevelCounter - Integer None-Array -- Counts the number of spawns/levels. See the example triggers below.
Initial SpawnsThese triggers show you how to create the timer for the initial spawn of creeps or the first level. First Spawn Timer
First Spawn Timer Expires
The Creep Levels or Creep SpawnsAs the game progresses, these three triggers function. I have the trigger commented for better understanding. Spawn Triggers for spawning the creeps
End Level Trigger on how the level ends
Next Level Trigger for the creation of the next level which actually points to Spawn trigger
|
useful tutorialsYou might also want to try the following tutorials which have some relationships to defense type of maps:
1. How to make a good TD from scratch
2. Ralle's Tower Defence Guide
3. Basics of a Tower Defense
UP
Last edited: