SA-MP Forums Archive
Textdraw move (TD_Move) suggestions needed for my plugin update. - 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: Textdraw move (TD_Move) suggestions needed for my plugin update. (/showthread.php?tid=302860)



Textdraw move (TD_Move) suggestions needed for my plugin update. - iPLEOMAX - 10.12.2011

Hello guys, I'm currently working on a nice update for my td plugin and hopefully get help from someone to release it for linux too.

So now, I have 2 methods for making td move system.

Type 1 (Move default textdraws - All)
- This one will allow you to move any textdraw you created and fade out / in / animate size, font, color etc and Loop them. Upside: Animate any TD. Downside: Slow Processing.

Type 2 (Create seperate slots for moving textdraws - CreateMovingTD(...))
- These will have their own slots upto a maximum of ~50 and can be animated just like above^.
Upside: It will be extremely faster and less laggy. Downside: Limit.

Which one should I use?


Re: Textdraw move (TD_Move) suggestions needed for my plugin update. - Mrki_Drakula - 10.12.2011

Lol i have no idea. You are the one that know whats better for us. Why dont you make two versions? In one use type 1 in version two use type 2.
Lol.


Re: Textdraw move (TD_Move) suggestions needed for my plugin update. - Trac - 10.12.2011

Type 1


Re: Textdraw move (TD_Move) suggestions needed for my plugin update. - Phanto90 - 10.12.2011

Make a function to move TextDraws instead?
When creating TextDraw you store their position and status in an array.

The function will be as follow
Код:
MoveTextDraw(Text:textdrawid, Float:xpos, Float:ypos)
And maybe also a timered movement for creating simpler effect
Код:
MoveTimedTextDraw(Text:textdrawid, movementype);
By movement type users can choose from some type of pre-listed movements
For example:
Код:
enum
{
UPDOWN,
LEFTRIGHT,
ROUND
}
I don't know these are just raw ideas... try. The more user friendly is, the better it is

Then a simple algorithm that calculates the number of processes needed for a fluid movement, you will need some testing but the final effect would be nice.
Good luck with that :P