Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: lemmy101 on Wed 22/02/2006 13:25:16

Title: Slow fadein when entering room? (SOLVED)
Post by: lemmy101 on Wed 22/02/2006 13:25:16
Hi all, I'm trying to get a fade-in working immediately after entering a room. Basically our game starts with someone waking up, and we wanted to have the room fade in really slowly to give the effect of waking up.

However the only place I can seem to get the FadeOut/FadeIn working is in the "After Fade In" interaction, which means the screen fades in itself before I get chance.

Any suggestions?

Cheers,
lemmy

EDIT: Thanks guys!
Title: Re: QUESTION: Fade In
Post by: bspeers on Wed 22/02/2006 16:05:18
Is the room animated? If not, make the first frame black.  Make the fade-in technique instant for that first room, then after fade-in, do the fading effect.  If you do it right, the cursor should blink a bit and that's all.

You would also have to set the background frame to frame 1 (vs frame 0) immidiately after setting the screen black for fade-in.

Also, I don't know if that would work in this instance, but you should also be able to set up the events before you load the room, such as in the previous room, but I don't really know how, off the top of my head.  That's because I'm ignorant though, not because it's particularly tricky.
Title: Re: QUESTION: Fade In
Post by: Kinoko on Thu 23/02/2006 00:23:39
I had trouble with this myself recently, and I think I suggested that it just be made possible to fade in and out slowly between room transitions, to avoid all these messy workarounds.

If I didn't make that suggestion, I make it now.
Title: Re: QUESTION: Fade In
Post by: Gregjazz on Thu 23/02/2006 02:25:56
Quote from: bspeers on Wed 22/02/2006 16:05:18
Is the room animated? If not, make the first frame black.  Make the fade-in technique instant for that first room, then after fade-in, do the fading effect.  If you do it right, the cursor should blink a bit and that's all.

You would also have to set the background frame to frame 1 (vs frame 0) immidiately after setting the screen black for fade-in.

Also, I don't know if that would work in this instance, but you should also be able to set up the events before you load the room, such as in the previous room, but I don't really know how, off the top of my head.  That's because I'm ignorant though, not because it's particularly tricky.

Yeah, that's a logical, clever workaround.

Can't have functions for everything, Kinoko. ;)
Title: Re: QUESTION: Fade In
Post by: Kinoko on Thu 23/02/2006 08:23:53
Yes you can!

Seriously though, I honestly think this would be a popular feature.
Title: Re: QUESTION: Fade In - SOLVED
Post by: Pumaman on Thu 23/02/2006 16:34:06
You can also create an object that has a full-screen black image, and then gradually reduce its transparency to fake a fade-in, though this method could be slow.