Centering Floating Text

rtschutter

New Member
Reaction score
0
Whenever I create floating text above a unit in this game it always comes out to the right of center over the unit. I assume this is because it determines that the text should start in the middle rather than start where it needs to for the middle of the text to be over the middle of the unit.

I want to center this text so it doesn't look terrible all of the time but I can find any way to adjust the x-axis of the text. Is this possible? How do I do it?

Thank you.
 

Exide

I am amazingly focused right now!
Reaction score
448
Here's an example of how to do it:

http://www.thehelper.net/forums/showthread.php?p=1073374

In the first post of the thread, check out the fifth trigger from the top (named 'New Item'.)

It starts by setting the string I want to display. Then set an integer variable to see how long the string is, then finally set the two points needed to display the floating text.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top