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

Floating text follow a unit

Status
Not open for further replies.
Level 9
Joined
Mar 27, 2009
Messages
309
I want to make floating text follow a unit, but it's proving to be difficult.

I also looked around for number models, that would work too, but I cant find them.

I'm making objects orbit around a central object with polar offsets 20 degrees at a time, I tried setting the floating text's velocity to a similiar polar offset, but it just ended up floating off the screen.

Any ideas?
 
You can easily make it each 0.1 seconds without lags. Btw, it's no good idea to use it for more than hundred units. You cant have more than ~100 floatings at one time, they would overwrite each other if you create more. I don't know exact limit.

If your map lags, it's for sure any other trigger that causes it. Using "Pick every unit" each 0.01 seconds for example would cause heavy lags, or if you have memory leaks in periodic trigger, too.

If you don't know anything about memory leaks you can read a tutorial. You find a link in my signature.
 
Level 9
Joined
Mar 27, 2009
Messages
309
I just make it spam every 0.01 to change it's position.

I was able to get 100 text out no problem, and no lag.

Ofc I need to clean all my ****ing leaks, but that's one of the last things I'll go back in do.

Horray for cowboy coding!
 
Status
Not open for further replies.
Top