Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 11/05/2006 18:12:24

Title: FadeIn function does not work
Post by: on Thu 11/05/2006 18:12:24
Hi,

I have a problem with the FadeIn function.
I wanted to fade the screen out, change the Background Frame and fade the screen in again. When testing it everything works nicely (also fadeout) but when the screen should fade in it goes bright instantly instead of fading.
This stays the case when i change the fade-time (no matter if you insert 1 or 100) or when i test it in other pieces of code. The game is 32-Bit color 640x480 an is compiled in AGS 2.7 (altough it was created in ags 2.6 - it had the same problem then)
So is this a bug or am I just to stupid to get it right?
I hope someone can help me
mode7
Title: Re: FadeIn function does not work
Post by: DoorKnobHandle on Thu 11/05/2006 18:24:15
I think we'd need to see your code in order to help you. It certainly is very possible to do what you just described here!
Title: Re: FadeIn function does not work
Post by: on Thu 11/05/2006 18:30:04
This is what i wanted to do :

// script for Room: Player enters room (after fadein)
FadeOut (2);
SetBackgroundFrame(0);
FadeIn (100);
Title: Re: FadeIn function does not work
Post by: Gilbert on Fri 12/05/2006 02:14:12
Try values like 30 first to see if it's actually working.
Also from the manual:
SPEED is from 1 (slowest) to 64 (fastest).

So don't use value like 100.
Title: Re: FadeIn function does not work
Post by: on Fri 12/05/2006 16:56:56
Using values like 1-64 seems not to do the trick.
Any other ideas?

I also tried the example from the manual - still the same
Title: Re: FadeIn function does not work
Post by: Gilbert on Sat 13/05/2006 04:24:27
What colour depth is your game in?
I think the problem is, setting the background frame will automatically display the bg instantly (especially for hicolour+ games), so try if this works:
FadeOut (2);
SetBackgroundFrame(0);
FadeOut(64);
FadeIn (30);