Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 14/03/2005 05:51:37

Title: Wait Unexpected
Post by: on Mon 14/03/2005 05:51:37
When i write in the (room script) area
to wait, i write this

function Room_Load
Wait(560);
NewRoom(2);
 
But when i go to test the game it says

Error (line1): Unexpected 'Wait'

what am i doing wrong.
Please help

From Joe
Title: Re: Wait Unexpected
Post by: MrColossal on Mon 14/03/2005 05:55:41
You can't have a wait before the room loads.

Put it in after the room fades in.
Title: Re: Wait Unexpected
Post by: Radiant on Mon 14/03/2005 07:55:05
Also, you must put () after a function declaration, and { } around the code that actually comprises the function.