Fading a text overlay

Started by SinSin, Thu 12/06/2008 21:12:36

Previous topic - Next topic

SinSin

Hello I have been trying to get a certain effect for my game and cannot work out the last bit Let me explain

Im using AGS 2.72 
When my character walks over a certain region i would like some text to fade on then hold for 4secs then fade off
  So far i have the following
Code: ags
 #sectionstart region1_a 
function region1_a() {
Overlay* myOverlay = Overlay.CreateTextual(50,80,120,2,15,"BlahBlahBlah");
Wait(160);
myOverlay.Remove();
  // script for Region 1: Player walks onto region
  
}
#sectionend region1_a   


obviously this makes the text appear but how do i stick the fades into the script
Currently working on a project!

GarageGothic

Overlays don't support variable transparency, so you can't fade them. You could use a text label on a GUI to display the text instead and then fade the GUI by gradually changing it's transparency in repeatedly_execute.

SMF spam blocked by CleanTalk