Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 07/02/2005 19:42:35

Title: Facelocation error
Post by: on Mon 07/02/2005 19:42:35
Whenever I use Facelocaton, it says it was an unexpected command. What am I doing wrong?
Title: Re: Facelocation error
Post by: on Mon 07/02/2005 19:46:17
Where/how are you using it? What's the code around it?
It's hard to tell what you're doing wrong, without an idea of what you're doing.
Title: Re: Facelocation error
Post by: Candle on Mon 07/02/2005 19:46:56
Are you doing it this way ?
FaceLocation(EGO,150,146);
You didn't show any code so can't tell what you have wrong .
Title: Re: Facelocation error
Post by: on Mon 07/02/2005 19:49:15
// room script file
FaceLocation (DVE,149,174);
Wait(1);
Title: Re: Facelocation error
Post by: Ashen on Mon 07/02/2005 20:00:43
Sorry about that - looks like Candle and I posted over each other. Anyway..

So, it's just in the room script? That's why you get the 'Unexpected Command' error - commands aren't supposed to go there.
When do you want it to happen? I'm guessing it's when the character enters the room, so try putting it in one of the Player enters screen interactions - (before fadein) is probably best, otherwise you'll see him turn. If you don't know what I'm talking about, it's the red 'i' button  (or CTRL-I), next to the edit script '{}' button.