• 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.

spawning

Status
Not open for further replies.

007

007

Level 6
Joined
May 3, 2009
Messages
175
i am making a tower defense, however i have a problem with the spawning of creeps. i want to spawn a creep every 0.6 seconds and then it is sent to the goal. additionaly i made a trigger to move every unit of that kind if the current movement speed is 0.

but only few units start walking and they always stop and walk again after a few seconds. and some units get stuck in groups at the spawning points but i guess this is because they dont walk early enough and get surrounded.

is this because of lagging (there are 18 spawning points)? i dont think so because it works in other TDs.

does anyone have a solution?
 
Level 7
Joined
Apr 1, 2010
Messages
289
the reason they are stopping/ starting is because each time you issue the units a move order they calculate a path to that point, and if other units have moved, the path they calculate is different then the one they previously calculated and they turn so that they will travel the shortest possible distance and when you issue it every .06 seconds the units that aren't moving are really wobbling back and forth.

so you should just do as ronjales says using regions to tell tell the unit where to go next, or you could just order the units you have spawned to move to the end location the problem with the second option is it works best if the unit have to go a certain way(ie you have pathing blockers placed all over around the path you want the spawns to go )
 
Status
Not open for further replies.
Top