SA-MP Forums Archive
Moving textdraw without destroying then rebuilding it. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Moving textdraw without destroying then rebuilding it. (/showthread.php?tid=422591)



Moving textdraw without destroying then rebuilding it. - Misiur - 14.03.2013

What's in title. Is it possible? I've written some animation easings for textdraws, but with current procedure of moving textdraw by rebuilding it it's unusable.


Re: Moving textdraw without destroying then rebuilding it. - LarzI - 14.03.2013

Hide it, change its position, show it.


Re: Moving textdraw without destroying then rebuilding it. - Scenario - 14.03.2013

What if you created another TD at the new location, and THEN destroyed the old one?

Other than that, not sure if there's really a "smooth" way to do it.


Re: Moving textdraw without destroying then rebuilding it. - Misiur - 14.03.2013

@LarzI: there isn't setposition function available.

@RealCop228: Yup, I've used this technique to create rotating model textdraws (but it was too client cpu intensive)


Re: Moving textdraw without destroying then rebuilding it. - Scenario - 14.03.2013

You might want to check out y_td, part of the YSI library. AFAIK there's not any documentation on it yet, but if you look at the include you should be able to figure it out.


Re: Moving textdraw without destroying then rebuilding it. - LarzI - 14.03.2013

Quote:
Originally Posted by Misiur
Посмотреть сообщение
@LarzI: there isn't setposition function available.
Haven't worked with TDs for ages, my apologies.