Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 03/09/2006 21:11:03

Title: Help with intro
Post by: on Sun 03/09/2006 21:11:03
Hi!
I want a fade in and a fade out in intro of my game but when i put:

// room script file
FadeOut(30);
Wait(40);
FadeIn(10);

A error appear...  (Parse error: unexpected "fadeOut")
What the problem!?

Thanks!  ;)
Title: Re: Help with intro
Post by: Joe on Sun 03/09/2006 21:21:48
Maybe you typed 'fadeOut' instead of 'FadeOut'
I mean maybe you forgot writing the letter 'F' as a capital letter.
Title: Re: Help with intro
Post by: on Sun 03/09/2006 21:29:14
the problem persist...
:S
Title: Re: Help with intro
Post by: Joe on Sun 03/09/2006 21:32:58
Can you show us all your script context?
Title: Re: Help with intro
Post by: Ashen on Sun 03/09/2006 21:47:15
If that's literally all you have, then the problem is that the commands aren't insiade a function. Do a forum search - that's the most common cause of 'unexpected (whatever)' errors. You'll need to put that code in an Interaction (e.g. 'Player enters room', 'Walk off left screen edge', etc, or a Hotspot/Object/Character interaction) to get it to run.

If it already IS in an interaction, then like Joe Carl says show the surrounding code too.