Floating HP%

sionts

New Member
Reaction score
0
I have this trigger for floating text. During a duel the floating HP% flashes but it isnt clear enough(Not smooth enough) and also it doesn't get destroyed after the duel ends.

Code:
Events
Time - Every 0.05 seconds of game time
Conditions
    Duel Equal to True
Actions
    For each (Integer A) from 1 to 12, do (Actions)
        Loop - Actions
            Floating Text - Destroy FT_Hero_life[(Integer A)]
            Floating Text - Create floating text that reads ((String((Percentage life of Hero[(Integer A)]))) + %) above Hero[(Integer A)] with Z offset 0.00, using font size 10.00, color ((100.00 - (Percentage life of Hero[(Integer A)]))%, (Percentage life of Hero[(Integer A)])%, 0.00%), and 0.00% transparency
            Floating Text - Change (Last created floating text): Disable permanence
            Floating Text - Change the lifespan of (Last created floating text) to 0.05 seconds
            Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
            Set FT_Hero_life[(Integer A)] = (Last created floating text)

Is there a better way?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Floating Text - Destroy FT_Hero_life[(Integer A)]
> Set FT_Hero_life[(Integer A)] = (Last created floating text)

Those two actions aren't needed.
You already set the text to expire after some time.
It will destroy itself.

> Floating Text - Change the lifespan of (Last created floating text) to 0.05 seconds

This should probably use something better than 0.05... this is practically instant.

> Time - Every 0.05 seconds of game time

That wouldn't be a bit often?
Try 0.5 or so...
 

sionts

New Member
Reaction score
0
it already is, but you can see its flashing, making it faster will just make it transparent and more flashy.
 
N

NiKaNoRoU_Dr

Guest
Try to make a transparent text by using a custom script (don't know the name, but it's probably done this way)
 
B

bugi_bi

Guest
NiKaNoRoU_Dr is very confused dude.
you dont need custom script to make transparent text...and he doesnt want that....
0.5 is too much cuz text created above unit wont stay above it...
0.05 is really to much....thats 20 times per second...
just balance that time and it should be ok.
 
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