HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Floating Text Question

10-26-2005, 07:30 PM#1
Bustaboom
Is there a way that i can keep one floating text seperate from another? I have floating text set up to start when a unit dies... but most of the time several units die at the same time and the floating text does not get destroyed its just the last created that gets destroyed. So i want to know if there is a way to make it so that when a group of units die at the same time all of them get destroyed instead of just one.
10-26-2005, 11:27 PM#2
iNfraNe
either use an array of floating texts, or use a little bit of jass.

The little bit of jass would be this:
first line:
Collapse JASS:
local texttag t
then you create the floating text, then this line of jass
Collapse JASS:
set t = bj_lastCreatedTextTag
then after you wait x seconds, u do this line to destroy the floating text:
Collapse JASS:
call DestroyTextTag(t)

note that jass IS case-sensitive so you need to either copy paste this or be carefull.
10-27-2005, 03:32 AM#3
Bustaboom
Ok and how would i go about making jass code that would make the text move upward at a certain speed?
10-27-2005, 09:17 AM#4
bananaboy
If I'm not mistaken, you can do that without jass. Just treat it as a normal float text, and set the parameters using the GUI functions. After you're done, then you set it to a local variable and destroy it.
10-28-2005, 02:18 AM#5
Bustaboom
No that does not work i just wanted to know what the jass function was so i could complete it... I already tried using all the gui functions
10-28-2005, 06:19 AM#6
Anitarf
Quote:
Originally Posted by Bustaboom
No that does not work i just wanted to know what the jass function was so i could complete it... I already tried using all the gui functions

Well, it is possible, lookie here.
10-28-2005, 12:48 PM#7
Zoxc
Well i think you are doing something wrong..plz post your trigger.