Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: evilspacefart on Wed 04/06/2003 05:19:32

Title: can't get FaceCharacter() to work.
Post by: evilspacefart on Wed 04/06/2003 05:19:32
script as follows:

MoveCharacterBlocking(EGO,259,195,0);
FaceCharacter(EGO,STARFISH);
DisplaySpeech(STARFISH, "* snort snort *");

What am I doing wrong?
AGS 255 release
Title: Re:can't get FaceCharacter() to work.
Post by: evilspacefart on Wed 04/06/2003 05:30:11
never mind... got it to work. Move player further away from target.

side note:
if you use FaceCharacter() in a script before a "run dialog" interaction in the interaction editor it will face the target after the interaction instead of before it.
anyone else getting that?
remedy - just use script, not interaction editor.
Title: Re:can't get FaceCharacter() to work.
Post by: Pumaman on Wed 04/06/2003 21:04:58
FaceCharacter/FaceLocation don't update the screen, you have to put a Wait(1); afterwards if you want that to happen.
Title: Re:can't get FaceCharacter() to work.
Post by: evilspacefart on Thu 05/06/2003 02:33:42
thanks :)
Title: Re: can't get FaceCharacter() to work.
Post by: Goldsmith on Sat 14/08/2004 02:47:27
Well, lately I'm having trouble making both FaceCharacter and FaceLocation work. Using a FaceCharacter() + Wait(1) script in any interaction that involves one of the characters leaving the room in the end simply returns a "Character is not in the room" error when you test it. And FaceLocation just doesn't seem to be doing anythig if I use it with another command (it just executes the other command and doesn't make my character face a different location...
Title: Re: can't get FaceCharacter() to work.
Post by: Pumaman on Sun 15/08/2004 11:17:04
Can you post an example script that doesn't work?