Stopping units from "lagging"

Steve

Member
Reaction score
3
in my td i want 30 units to spawn from 8 spawn points, however when this happens the units stop and go every few seconds, often times getting into small groups and not waves of guys. Just wondering how to fix or at least make it a bit better.
 

ArmedCitizen

Kisses Cats
Reaction score
197
I think that happens when you don't remove their collision size. If this isn't the case just make a periodic trigger that orders them all to move to the next region.

If you don't know how to make them move to the next region you can set all the units custom value to 0. (via object editor) In a trigger have a region array with the number of regions you have, each one goes to the next. Then each time the unit enters a region set the custom value to the custom value of the unit +1. In the periodic trigger order the units to move to Region[their custom value].

That is a quick overview. If you want the trigger I'll whop out World Editor.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
874
Lots of units on the map at one time cause them to lag. I don't know of any way to prevent this. You could try using a loop to spawn so they don't all show up at exactly the same time, but don't expect much.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
607
You mind posting your trigger? So we can see what makes it "Lag"
 

elmstfreddie

The Finglonger
Reaction score
203
It's just order unit to move to a point... It's the infamous grouping problem.

Try setting collision of the creeps to 0.01.
 

Steve

Member
Reaction score
3
collision is set to .01 i could add the periodic triggers in see what happens.
 

esb

Because none of us are as cruel as all of us.
Reaction score
325
or, create and move them one by one, so they don't "bump" into each other.

From integer A 1 to 30 do actions
Create 1 Footman at center of etc. etc.
Order last created unit to move to region
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    Which company do you work for?
  • vypur85 vypur85:
    Haha yea they'd compare my country as well...
  • vypur85 vypur85:
    Hmm i don't receive any pm? Maybe I'm using my phone. Gonna check it out using my pc later.
  • vypur85 vypur85:
    I'm teaching A Levels in a school in Wuhan.
  • jonas jonas:
    You should see a "private conversations" tab in the chatbox, that's where I sent it to you
    +1
  • jonas jonas:
    Wow
  • jonas jonas:
    Is the school system in your country similar to Chinese school system? I could never imagine being a teacher in a Chinese school, what's expected of students and teachers is just so different from what I'd be looking for as a teacher
  • vypur85 vypur85:
    A Levels is based on the UK syllabus offered internationally. So the syllabus is similar throughout different countries, taught in english.
  • vypur85 vypur85:
    I can't speak or write or read much chinese... Too difficult....... Which also makes my life here in china a lil difficult.
  • jonas jonas:
    Oh, I see. I thought Chinese version of A-levels :D
  • jonas jonas:
    I've been using the translate app a lot on my phone. take a photo, translate. take another photo, translate again :D
  • jonas jonas:
    it also has voice translation, my colleagues sometimes use that
  • jonas jonas:
    You came during the 0 covid policy right? How'd you get through quarantine? Did you have some help with the apps and green codes?
  • tom_mai78101 tom_mai78101:
    If you have any Chinese you need help with, let me know.
  • vypur85 vypur85:
    @jonas Those were the things I did too. Translate app and VPN are always the most important things to have to survive. Lol.
  • vypur85 vypur85:
    Yea I came last year. I was quarantined for about 30 days. Fml. The first day of my quarantine was the eve of Chinese new year last year. Fml again... Lol.
  • vypur85 vypur85:
    @tom_mai78101 IIRC you're from Taiwan right.
  • The Helper The Helper:
    I thought China had cracked down on having any foreign teachers?
  • vypur85 vypur85:
    Yeah I've heard of the news before. My school is still actively hiring foreign teachers. Not sure how things work now.
  • The Helper The Helper:
    yeah it is hard to get reliable information about that kind of stuff
  • The Helper The Helper:
    but you are doing it so it is still doable
  • vypur85 vypur85:
    I think it doesn't affect existing foreign teachers. Then again, its still weird that my school is hiring.
  • The Helper The Helper:
    Happy Monday people hope everyone has a fantastic week!
  • Ghan Ghan:
    Happy Monday?! That's a contradiction.

    The Helper Discord

    Staff online

    • K3V
      NUON-Dome Moderator

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top