GUI fade in and out [SOLVED]

Started by Ubel, Sun 06/03/2005 13:29:51

Previous topic - Next topic

Ubel

How do I make a GUI fade in or out?

LazyAshen

SetGUITransparency (int gui, int amount);

e.g.:
Code: ags

SetGUITransparency (INV, 100); //Totally invisible
Wait (1);
SetGUITransparency (INV, 90);
Wait (1);
// ..etc
SetGUITransparency (INV, 10);
Wait (1);
SetGUITransparency (INV, 0); // Fully visible


or (simpler way):
Code: ags

//int vis = 100; // declared somewhere else
while (vis > 0) {
  SetGUITransparency (INV, vis);
  vis -= 10;
  Wait (1);
}

Depends how/when you want it to happen.

Ubel

Thanks! It worked great.

SMF spam blocked by CleanTalk