HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Texttag problems.

07-03-2007, 12:50 AM#1
Softmints
I have been having a problem recently with texttags (floating text). They work fine for a while, and after 80 or so uses, the most recent one replaces all others. I am aware that there is a limit of 100; but I am not using them all at the same time, and I am using Blade.dk's function for their creation.

The function itself is certainly being called, and I have tested to make sure there are not more than 100 at any time (usually no more than 10). I suspect that they are not being destroyed properly after each use.

If you have any ideas on what might be causing the problem, or if you need further information, I'll reply as soon as I can.

Thanks in advance.



Blade.dk's AddFadingTextTag function:
Collapse JASS:
function AddFadingTextTag takes string text, real x, real y, integer red, integer green, integer blue, integer alpha returns nothing
    local texttag t = CreateTextTag()
    call SetTextTagText(t, text, 0.025)
    call SetTextTagPos(t, x, y, 0.00)
    call SetTextTagColor(t, red, green, blue, alpha)
    call SetTextTagVelocity(t, 0, 0.03)
    call SetTextTagVisibility(t, true)
    call SetTextTagFadepoint(t, 2)
    call SetTextTagLifespan(t, 3)
    call SetTextTagPermanent(t, false)
    set t = null
endfunction
07-03-2007, 01:40 AM#2
grim001
maybe you should post code?
07-03-2007, 06:39 AM#3
Toadcop
set t = null
is obsolete...
+ call SetTextTagPos(t, x, y, 0.00) - the 0.00 must be also a chanchable value (it's Z) i mean it would be much better ^^
// post the code