[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
#2

Video?
Reply
#3

Quote:
Originally Posted by Jochemd
View Post
Video?
There's a video posted. Look closer...
Reply
#4

Why did you created another thread for this?
Reply
#5

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

EDIT: nvm, pastebin.com is terrible slow ! I see it now
Reply
#6

Please will someone make a Fade in textdraw animation for me? I am beginner.
Under OnPlayerConnect?
Reply
#7

Quote:
Originally Posted by Littlehelper[MDZ]
View Post
Why did you created another thread for this?
this.
Reply
#8

i like :$
Reply
#9

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]
Reply
#10

To be honest I don't see a video.
Reply
#11

C:\Users\Mininou\Desktop\Vodka\filterscripts\testd .pwn(2) : fatal error 100: cannot read from file: "TextDrawAnimations"
Reply
#12

Quote:
Originally Posted by BigBaws
Посмотреть сообщение
C:\Users\Mininou\Desktop\Vodka\filterscripts\testd .pwn(2) : fatal error 100: cannot read from file: "TextDrawAnimations"
Redownload the test.pwn.

I forgot to change a name in one line.
Reply
#13

oww another one
Meh,Take it to win Awesome again
+1 for u

Edit: Bug found u forgot to add public OnAnimFinish

NVM ^
Reply
#14

Nice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)