Now for another use of BB Code for a text effect we'll do a bit of copy and paste with the function we used in the previous tutorial.
Since you can have multiple instances of the editor open we can open the previous tut and go to the events page.
To copy and paste events you will need to use the Copy feature when you right click on the function event.
You might notice I renamed the function to something more appropriate.
The events:
* On function 'bigrfunc'
-> Text: Tween "bigr" value from 0 to 190 in Text.tspeed seconds (Out Exponential, destroy: No, loop: No, ping pong: No, repeat count: 1)
-> Text: Set curstring to left(Text.mystring, len(Text.curstring)+1)
We change the tween to use the values 0 to 190, and the name of course.
+ Text: Is Tween "bigr" playing
-> Text: Set text to Text.curstring&"[size="&Text.Tween.Value("bigr")&"%]"&mid(Text.mystring,len(Text.curstring),1)&""
Here we change the bbcode feature size=... and the name
+ Text: On Tween "bigr" finished
----+ System: len(Text.curstring) < len(Text.mystring)
-----> Functions: Call bigrfunc
Don't forget the name change.
Find the source here
Comments
Post a Comment