[TD] Moving Problem...

N

Naminator

Guest
Heh... Everything seems to be OK until starts the first level and spawns units :)
1st.-

Events
Time - Elapsed game time is 30.00 seconds
Conditions
None
Actions
Unit - Create 30 Prisoner - Level 1 for Player 12 (Brown) at (Center of spawn1 <gen>) facing Default building facing degrees
2nd.(thats 1st move)-
Events
Unit - A unit enters spawn1 <gen>
Conditions
None
Actions
Unit Group - Order (Units in spawn1 <gen>) to Move To (Center of Second Spot <gen>)
--------------------------------------
until this everything is ok... but when they must walk they dont walk... :( walks something like 10 of 30 creeps but other 20 just stay :(

what is wrong ?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
You create 30 creeps on the same location. The creeps in the middle is blocked by those in the edges of the group. Instedd of spawning 30 at once do somthin like this:

Code:
Events
Time - Elapsed game time is 30.00 seconds
Conditions
None
Actions
Foor each integer A beetwen 1 and 30 do-
       Unit - Create 1 Prisoner - Level 1 for Player 12 (Brown) at (Center of spawn1 <gen>) facing Default building facing degrees
       wait 0.5 game time secunds

Foor each integer A beetwen 1 and 30 do is a loop. it is found under general in trigger menu.
 

Axe.killer

New Member
Reaction score
24
Dont use unit group! A specific unit will enter, and it will SPECIFICALLY go to the designation
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Axe.killer said:
Dont use unit group! A specific unit will enter, and it will SPECIFICALLY go to the designation

Yes ofcourse... I think all orders to groups only order the first 12 units in that group. That is why only 12 of your units move.

But change your trigger to the things above. If you create 30 units at once can make tha game laggy.

And add a condition to your move trigger. I dont think the those who play your game is very happy when there builder suddenly follow the creeps in there path.
Conditon - Owner of entering unit == (the player who owns the creeps)
 

Axe.killer

New Member
Reaction score
24
remember that when a unit enters a region, that specific unit will move to a location. Not when a unit enters location, order 12 unis to move at region example,.... for example.
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Try this:
Code:
Events
Time - Elapsed game time is 30.00 seconds
Conditions
None
Actions
For each Interger A from 1 to 30:
Unit - Create 1 Prisoner - Level 1 for Player 12 (Brown) at (Center of spawn1 <gen>) facing Default building facing degrees

Events
Unit - A unit enters spawn1 <gen>
Conditions
None
Actions
Unit Group - Order (Entering Unit) to Move To (Center of Second Spot <gen>)

Possible Problems:
Units may get stuck(block each other) - Put a 0.5 game time wait after creating each Prisoner.
Units may refuse to move(can't have two simultaneous orders without problems) - Put a 0.5 game time wait after creating each Prisoner.
I'm sure I'll think of some more in half an hour.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top