Author Topic: Fading text overlay  (Read 288 times)  Share 

Fading text overlay
« on: 30 Mar 2012, 23:25 »
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

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Fading text overlay
« Reply #1 on: 31 Mar 2012, 00:52 »
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.
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

Re: Fading text overlay
« Reply #2 on: 31 Mar 2012, 01:51 »
Ok, and how do I set the transparency in the script? Sorry, I'm new at this.  :=
-gamemaster468

TheMagician

    • I can help with proof reading
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
Re: Fading text overlay
« Reply #3 on: 31 Mar 2012, 03:19 »
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.
« Last Edit: 31 Mar 2012, 03:22 by TheMagician »

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Fading text overlay
« Reply #4 on: 31 Mar 2012, 07:44 »
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.
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"