Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: homey3 on Sun 08/08/2004 11:06:52

Title: text boxes fade in?
Post by: homey3 on Sun 08/08/2004 11:06:52
Sigh, hopefully this will by my last problem for a while (knock on wood).  Is there a way to make the text boxes fade in?  I'm doing the credits and it looks bad having them just "pop" in and out.  This might be kind of obscure, but is there a way of doing this?

Jonathan Grant
Title: Re: text boxes fade in?
Post by: Scummbuddy on Sun 08/08/2004 14:28:51
make your text images, and have them fade in, in an animating way.
Title: Re: text boxes fade in?
Post by: Darth Mandarb on Sun 08/08/2004 16:24:44
If you don't want to use graphics I think the command is SetGUITransparency.

You can create a fading effect using this as well.

SetGUITransparency(GUI,X); // GUI = The GUI you want to use and X is the % of transparency

One way to do it:

GUIOn (1); // turns on the gui you want
Ã,  Ã,  Ã,  Ã,  Ã, while (GUITran <= 100) {Ã,  Ã, 
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  GUITran ++;Ã,  Ã,  Ã,  Ã,  Ã,  Ã, 
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  SetGUITransparency (1, GUITran);Ã,  Ã, 
Ã,  Ã,  Ã,  Ã,  Wait (1);
Ã,  Ã,  Ã,  Ã,  Ã,  }