• 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 in JASS not working

Status
Not open for further replies.
So I'm not sure why, this doesn't create any floating text:

JASS:
set udg_SP_ChargeFloatText[id2] = CreateTextTag()
call SetTextTagVisibility(udg_SP_ChargeFloatText[id2], true)
call SetTextTagText(udg_SP_ChargeFloatText[id2], "• • • ", 6)
call SetTextTagPos(udg_SP_ChargeFloatText[id2], x, y, 30)

If I do this, however:

set udg_SP_ChargeFloatText[id2] = CreateTextTagUnitBJ( "• • • ", udg_SP_Pyxis[id], -10.00, 6, 100, 100, 100, 0 )

Works like a charm. Ordinarily I'd settle for that, but I'm also using substrings to update the text and changing said text with SetTextTagText is deleting the floating text for some reason. I thought maybe I was using substrings wrong, so I tried call SetTextTagText(udg_SP_ChargeFloatText[id], "test", 6) but that still failed.

Halp
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
There is a maximum size for floating texts.
When you set the value higher than that, it wont display as it has invalid values.
If I recall correctly, it is 0.345 ... but it could be a bit more or less.

Also be aware that there is also such a calculation in SetTextTagVelocity.
 
Status
Not open for further replies.
Top