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

[Solved] Floating text strange problem

Status
Not open for further replies.

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
guys I have problem with floating text, where if I make several floating text periodicaly or in some triggers, and then store it into a variable, then I set the velocity, duration, etc, sometimes it wont work. sometimes the floating text just dissapeared suddenly and mysteriously. I have no idea how to solve this problem. please someone help me. :(
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
I just write the example case. Dont need to post the trigger.

I only use about 7 floating text every second and it wont work correctly. :/

okay I will write the specific case
at trigger 1 (damage detector) I create floating text and set the velocity, lifespan to 2 seconds, etc
at trigger 2 (healthbar) I make the healthbar floating text dissapeared when the target dies, but strangely, the damage text dissapeared very soon after created.
I can't understand what's going wrong, I have store them into a variable too, but still...
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
think about it, the only thing you can do with floating text is just store it as variable and then set the velocity , lifespan, etc. What else? I don't really need to post the trigger right? My trigger is just do the same. Just in different event. I'm just wondering about why did some floating texts dissapear strangely when I create them very periodicaly? My prediction is floating text is very fragile, where we can't use it too often.

Mark this thread as solved. Main problem is we have to create text no more than 100 at once.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
You said in trigger2, you make a text tag disappear. So you hide it or you destroy it. In any way may this affect text tags you did not want to depending on your implementation.

I suspect you save the text tag in a variable, overwrite the text tag, the variable still points to the same id and thereby hits the new object. Text tags are not agents, therefore not reference-counted, you can release their id even before all variables are gone and then have some new value in the variable.
 
Status
Not open for further replies.
Top