FadeIn function does not work

Started by , Thu 11/05/2006 18:12:24

Previous topic - Next topic

mode7

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

DoorKnobHandle

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!

mode7

This is what i wanted to do :

// script for Room: Player enters room (after fadein)
FadeOut (2);
SetBackgroundFrame(0);
FadeIn (100);

Gilbert

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.

mode7

#4
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

Gilbert

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);

SMF spam blocked by CleanTalk