[Include] Textdraw Animations V2.0!
#1

For the old version, refer to this link.

Textdraw Animations v2.0!
[ame]http://www.youtube.com/watch?v=jKmpM86T8Ns[/ame]

So, this new version has the same effects than the previous, but now supports multiple effects at once!

Not much has changed since the last version about the use. It pretty much remains the same, so you may want to read this before using this new version.

What changed?

You create the textdraws as usual ( read the first version for info about this ), and then you need to add this before using any of the effects ( just one time before each string of effects! ):

pawn Code:
Init_Effects()
That is just a nice macro for "new tid", wich is a variable that stores a random id number for the timers. You can just do "new tid" and it would be the same.

And then you just use the usual functions:

pawn Code:
Init_Effects();    
TextDraw_FadeIn( playerid, TEXTDRAWS_ANIMATION_0, 100, 0, 0, 2 );  
TextDraw_Pulsate( playerid,-1,40, 100, 8, 10 );
And finally, to hide the textdraws you now use:

TextDraw_Hide( playerid, timerid, textdrawid_min, textdrawid_max );

The timerid is the id of the timer wich has been assigned to each textdraw effect. You don't need to specify it. Just use it inside "OnAnimFinish()" and you're good to go.

Enjoy and comment any bugs!



Download:

Version 2.1

Version 2.0 ( 27-Mar-12 )

Test script

Bugs:

- The first time you show the "grow" animation, it can look "laggy", but it will work fine after the first use.

Updates:

Code:
Changelog v2.1:

- Fixed a bug at Textdraw_Pulsate.
- Added option to Textdraw_FadeIn to play a sound for each textdraw shown. Sintax would be: TextDraw_FadeIn( playerid, index, speed, duration, t_buffer_min, t_buffer_max, soundid );
Reply


Messages In This Thread
Textdraw Animations V2.0! - by clavador - 27.03.2012, 14:58
Re: Textdraw Animations V2.0! - by Jochemd - 27.03.2012, 15:01
Re: Textdraw Animations V2.0! - by clavador - 27.03.2012, 15:04
Re: Textdraw Animations V2.0! - by Littlehelper - 27.03.2012, 15:10
Re: Textdraw Animations V2.0! - by Michael@Belgium - 27.03.2012, 16:04
Re: Textdraw Animations V2.0! - by iMaxRobot - 27.03.2012, 16:17
Re: Textdraw Animations V2.0! - by T0pAz - 27.03.2012, 16:24
Respuesta: Textdraw Animations V2.0! - by Don_pepe - 27.03.2012, 17:50
Re: Textdraw Animations V2.0! - by clavador - 30.03.2012, 15:25
Re: Textdraw Animations V2.0! - by Jochemd - 31.03.2012, 07:55
Re : Textdraw Animations V2.0! - by BigBaws - 31.03.2012, 11:04
Re: Re : Textdraw Animations V2.0! - by clavador - 31.03.2012, 13:28
Re: Textdraw Animations V2.0! - by Niko_boy - 14.05.2012, 14:22
Re: Textdraw Animations V2.0! - by Juninho_Oakley - 14.05.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)