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...
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.
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
I'd use a black GUI. RawDrawing always happens beneath characters and objects.
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++;
}
}
You can use the flashlight module
Using radius...
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.