Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 17/08/2003 20:59:54

Title: Fade in / Fade out text?
Post by: on Sun 17/08/2003 20:59:54
Hey, i'm creating a movie in AGS and I have been wondering, what script is needed to fade in text then fade it out. I'm gonna need it to load at specific X,Y co-ordinates and I don't want it in a box.

This is for the starting credits of my movie.

And if possible, how would I do the same with an image?

- Thanks, Jeff AKA Ravenfusion.
Title: Re:Fade in / Fade out text?
Post by: Ishmael on Mon 18/08/2003 05:22:44
If you have black bg, you could use an invisible character, which talks the text, or a GUI with one label where you put the text with SetLabelText(...), and then use FadeIn() and FadeOut()...
Title: Re:Fade in / Fade out text?
Post by: Scummbuddy on Mon 18/08/2003 06:44:50
you could use the letters and make your own sentances in like ms paint, and then create different faded levels of the text, and then in ags, create an animation using them, and then play the animations in the area you want and when you want
Title: Re:Fade in / Fade out text?
Post by: Ishmael on Mon 18/08/2003 08:31:47
I was making ending credits to my game with the GUI method, it worked fine, exept that the text changed after the fadein, instead of between the fades... and then I left it, because I thought I dont need the fades... but using some Wait(1)'s between the fades should fix that...
Title: Re:Fade in / Fade out text?
Post by: on Mon 18/08/2003 09:23:21
Thanks for the help guys! I'll give it a shot. :)

I'm just gonna draw up all the frames and then put 'em together. It'll take ages but it'll probably be better...
Title: Re:Fade in / Fade out text?
Post by: on Mon 18/08/2003 10:34:10
hmmmmm...next question:

If I have all the frames drawn out, how would I get them in? (The problem is that you can only have a limited ammount of frames...)
Title: Re:Fade in / Fade out text?
Post by: Timosity on Mon 18/08/2003 16:56:07
Depends what method you're using, if you are making an animation for fading out (scummbuddy's method) you just use a view in the editor, which can have up to about 286 frames in a view (15 loops I think, with 19 per loop [20 for 1 loop if you don't use multiple loops])

Then use objects for the text, then animate them.

You may be thinking of animating the background, which you can have 5 frames I think, but don't do that.

I hope you understand what I just said

~Tim
Title: Re:Fade in / Fade out text?
Post by: Scummbuddy on Mon 18/08/2003 16:59:14
yes. in the views, there is a selection that says "Run the next loop after this to make a long animation"
just use that to make any long animation you may need, but you actually may not... just make your animaitons in your views editor
Title: Re:Fade in / Fade out text?
Post by: on Mon 18/08/2003 17:57:00
k thanks for the help! :) i'm almost certain that using views will work :P
Title: Re:Fade in / Fade out text?
Post by: TerranRich on Mon 18/08/2003 18:02:07
People, people! What is wrong with using SetObjectTransparency and a simple while(...) statement? Or are we trying to avoid scripting? :)
Title: Re:Fade in / Fade out text?
Post by: on Mon 18/08/2003 18:46:37
Must....avoid....script. :D