Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 08/11/2007 14:45:27

Title: functions similar to Fadeout()?
Post by: on Thu 08/11/2007 14:45:27
I use (and abuse really) the FadeIn() FadeOut() functions.

I would like, just for a few scenes of my game, to use a different effect, id est the "black box out" (effect that is available for room transition, as shown in the "General Setting" sheet).

I'm searching right now for the AGS function that does the same thing but does not require a room transition (like fadein/fadeout).

I've searched the manual thoroughly but still can't find it...
Title: Re: functions similar to Fadeout()?
Post by: Candall on Thu 08/11/2007 14:54:36
You could use RawDrawRectangle() to make a series of bigger and bigger rectangles that eventually overthrow the screen, and then do it all again in reverse.
Title: Re: functions similar to Fadeout()?
Post by: on Thu 08/11/2007 15:01:50
Quote from: Candall on Thu 08/11/2007 14:54:36
You could use RawDrawRectangle() to make a series of bigger and bigger rectangles that eventually overthrow the screen, and then do it all again in reverse.

Meh, interesting solution. I'll try that out
Title: Re: functions similar to Fadeout()?
Post by: Khris on Thu 08/11/2007 15:10:38
I'd use a black GUI. RawDrawing always happens beneath characters and objects.
Title: Re: functions similar to Fadeout()?
Post by: Radiant on Thu 08/11/2007 16:44:13
Quote from: KhrisMUC on Thu 08/11/2007 15:10:38
I'd use a black GUI. RawDrawing always happens beneath characters and objects.

Precisely.


function box_out () {
  gBox.Enabled = true;
  int i = 0;
  while (i < 100) {
    int j = (160 * i) / 100;
    gBox.SetPosition (160 - j, 100 - i);
    gBox.SetSize (2*j, 2*i);
    Wait (1);
    i++;
  }
}

Title: Re: functions similar to Fadeout()?
Post by: Dualnames on Fri 09/11/2007 16:22:25
You can use the flashlight module
Using radius...
Title: Re: functions similar to Fadeout()?
Post by: Pumaman on Sun 11/11/2007 15:04:47
The reason the other transitions aren't available manually is because they all transition between two different screens; whereas a FadeOut/FadeIn just goes between the current screen and black.