SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 27/03/2012, 02:58 PM   #1
clavador
Huge Clucker
 
clavador's Avatar
 
Join Date: Jun 2007
Location: Argentina
Posts: 220
Reputation: 71
Thumbs up Textdraw Animations V2.0!

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 );
__________________

Last edited by clavador; 04/04/2012 at 10:13 AM.
clavador is offline   Reply With Quote
Old 27/03/2012, 03:01 PM   #2
Jochemd
High-roller
 
Jochemd's Avatar
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 2,220
Reputation: 844
Default Re: Textdraw Animations V2.0!

Video?
__________________
Jochemd is offline   Reply With Quote
Old 27/03/2012, 03:04 PM   #3
clavador
Huge Clucker
 
clavador's Avatar
 
Join Date: Jun 2007
Location: Argentina
Posts: 220
Reputation: 71
Default Re: Textdraw Animations V2.0!

Quote:
Originally Posted by Jochemd View Post
Video?
There's a video posted. Look closer...
__________________
clavador is offline   Reply With Quote
Old 27/03/2012, 03:10 PM   #4
Littlehelper
Gangsta
 
Littlehelper's Avatar
 
Join Date: Nov 2011
Location: 420
Posts: 946
Reputation: 178
Default Re: Textdraw Animations V2.0!

Why did you created another thread for this?
Littlehelper is offline   Reply With Quote
Old 27/03/2012, 04:04 PM   #5
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 1,768
Reputation: 1001
Default Re: Textdraw Animations V2.0!

You should editing your post here !. And the pastebin links are not workign ?!

EDIT: nvm, pastebin.com is terrible slow ! I see it now
__________________

Need host-tab ? Contact me on discord^

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM
You last visited: 09/10/2018 at 08:30 PM
Michael@Belgium is offline   Reply With Quote
Old 27/03/2012, 04:17 PM   #6
iMaxRobot
Big Clucker
 
iMaxRobot's Avatar
 
Join Date: Mar 2012
Posts: 80
Reputation: 12
Default Re: Textdraw Animations V2.0!

Please will someone make a Fade in textdraw animation for me? I am beginner.
Under OnPlayerConnect?
__________________
▌│█║▌║▌║▌│█║▌║▌║║▌║▌║█│▌║▌║▌║█│▌
▌│█║▌║▌║ ησ ηεε∂ тσ +яερ мε εvεη ιғ ι нεℓρε∂ үσυ , вεcαυsε α тяυε нεℓρεя ηεvεя αsкs ғσя яεωαя∂ :∂
▌│█║▌║▌║ αи∂ ∂σи'т fσяgєт тσ яєρ мє ιf уσυя gιяℓfяιєи∂ ιѕ ѕєχу <3
▌│█║▌║▌║ ωε ∂ση'т ηεε∂ мσяε мαρρεяs, тнαηкs ғσя үσυя sωεεт яερℓιεs.
▌│█║▌║▌║ I'm an Assasin who is invincible.
▌│█║▌║▌║▌│█║▌║▌║║▌║▌║█│▌║▌║▌║█│▌
iMaxRobot is offline   Reply With Quote
Old 27/03/2012, 04:24 PM   #7
T0pAz
Guest
 
Posts: n/a
Default Re: Textdraw Animations V2.0!

Quote:
Originally Posted by Littlehelper[MDZ] View Post
Why did you created another thread for this?
this.
  Reply With Quote
Old 27/03/2012, 05:50 PM   #8
Don_pepe
Huge Clucker
 
Don_pepe's Avatar
 
Join Date: Jan 2012
Posts: 227
Reputation: 6
Default Respuesta: Textdraw Animations V2.0!

i like :$
__________________
HostName: ™|••[--> Zona Extrema [ InternacionaL ] <--]••|™
Address: 109.169.64.130:4444
Players: X/ 150
Ping: 95
Mode: •Stunt|Dm|Freeroam|Español
Map: •InternacionaL•
Don_pepe is offline   Reply With Quote
Old 30/03/2012, 03:25 PM   #9
clavador
Huge Clucker
 
clavador's Avatar
 
Join Date: Jun 2007
Location: Argentina
Posts: 220
Reputation: 71
Default Re: Textdraw Animations V2.0!

Fixed a bug and added an extra parameter to TextDraw_FadeIn.

I'll be working on more effects when I finish another project I was working on before this.

Here's what you can do with this new parameter:

[ame]http://www.youtube.com/watch?v=SZ0POHptPw4[/ame]
__________________
clavador is offline   Reply With Quote
Old 31/03/2012, 07:55 AM   #10
Jochemd
High-roller
 
Jochemd's Avatar
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 2,220
Reputation: 844
Default Re: Textdraw Animations V2.0!

To be honest I don't see a video.
__________________
Jochemd is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Textdraw Animations clavador Includes 15 27/03/2012 02:15 AM
My animations LiamM Scripting Help 3 05/01/2012 01:15 PM
Animations? Gemini Scripting Help 5 24/08/2011 06:02 PM
animations Baboon Help Archive 4 16/12/2010 02:55 PM
[HELP] with Animations. Eazy1993 Help Archive 2 13/11/2009 03:48 PM


All times are GMT. The time now is 07:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.