Issue with the FadeOut() function...

Started by captain_hillman, Wed 29/06/2011 22:07:02

Previous topic - Next topic

captain_hillman

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

Code: ags

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

discordance

The code should be in the After Fade In function, not Before Fade In.

captain_hillman

Works like charm! I knew it'd be some simple thing I'd missed  :P

Cheers!

SMF spam blocked by CleanTalk