Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: captain_hillman on Wed 29/06/2011 22:07:02

Title: Issue with the FadeOut() function...
Post by: captain_hillman on Wed 29/06/2011 22:07:02
Hi all,

I'm trying to use a room as a splash screen & have it fade in whilst playing a noise then fade out, simple enough right?

However, when I run the game (room's code is below), I get an error message claiming 'If you want to use Wait() do so after FadeIn()"

Thoughts???


//Splash Screen


function splashSpot_AnyClick() {
}

function room_Load()
{
gButtonbar.Visible = false; 
mouse.Visible = false;
aBwong.Play();
FadeIn(1);
Wait(40);
FadeOut(1);

}



Thanks for any help in advance!  ;D
Title: Re: Issue with the FadeOut() function...
Post by: discordance on Wed 29/06/2011 22:07:53
The code should be in the After Fade In function, not Before Fade In.
Title: Re: Issue with the FadeOut() function...
Post by: captain_hillman on Wed 29/06/2011 22:12:13
Works like charm! I knew it'd be some simple thing I'd missed  :P

Cheers!