Fading text overlay

Started by gamemaster468, Fri 30/03/2012 23:25:39

Previous topic - Next topic

gamemaster468

Hey guys. I have a question about text overlays. Now I know how to make an overlay appear and all that jazz. (Thanks to desmings video tutorial.  :=) But what I would like to accomplish is to sort of have the text fade in when the game starts. I want the text to fade in, stay on the screen for a few seconds, and then fade out. How do I do this?
-gamemaster468

Khris

You can't fade an Overlay, use a GUI instead (put the text on a label / image on a button, then fade the GUI in and back out by changing its .Transparency value).

There are lots of threads about fading GUIs; there's also the Tween module which makes implementing fading and other transitions really easy.

gamemaster468

Ok, and how do I set the transparency in the script? Sorry, I'm new at this.  :=
-gamemaster468

TheMagician

#3
Please refer to AGS' manual ("GUI functions and properties" -> "Transparency property").

If you want to fade GUIs in and out smoothly I second Khris' suggestion: have a look at Edmundito's Tween module which can do that and much more. It can be found in THIS THREAD.

Khris

Yeah, my second paragraph was a pretty blatant suggestion to use the forum search.
Looking at your other thread, where you obviously didn't even consult the manual about a command before asking here, you should probably reread the forum rules now.

SMF spam blocked by CleanTalk