functions similar to Fadeout()?

Started by , Thu 08/11/2007 14:45:27

Previous topic - Next topic

bicilotti

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...

Candall

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.

bicilotti

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

Khris

I'd use a black GUI. RawDrawing always happens beneath characters and objects.

Radiant

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.

Code: ags

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++;
  }
}


Dualnames

You can use the flashlight module
Using radius...
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Pumaman

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.

SMF spam blocked by CleanTalk