Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Tha2ohSIX on Thu 09/10/2003 14:18:53

Title: Need help with face location
Post by: Tha2ohSIX on Thu 09/10/2003 14:18:53
I can't seem to get face location to work.  The character never faces the coordinates that I type in.  Can anyone please help?
Title: Re:Need help with face location
Post by: SSH on Thu 09/10/2003 15:03:47
First, Double-check that your left, right, up and down views have the correct sprites assigned.
Second, what are the x, y co-ords of the player and the location you are trying to face?
Third, do you have diagonal views?
Fourth, does the walking of your character look correct in the direction you want to change to?

Title: Re:Need help with face location
Post by: Ishmael on Fri 10/10/2003 17:52:48
And also, put Wait(1); after your FaceLocation command ;D
Title: Re:Need help with face location
Post by: Tha2ohSIX on Tue 21/10/2003 12:24:20
Hey, sorry it took me a while to reply, I got kinda tied up with another element in my game.  I got the face location to work when I put it in "player enters screen (before fadein)".  But now my question is how do you face your character different ways depending on which room you came from?  For instance, if the main char comes from a screen below where he is he will be facing north, but if he comes to the same screen from a screen to the left he will be facing right.  Its been bugging me all night.  Any help will be greatly appreciated.
Title: Re:Need help with face location
Post by: Ishmael on Tue 21/10/2003 12:26:01
if (character[EGO]. prevroom == .... and so on
Title: Re:Need help with face location
Post by: Tha2ohSIX on Tue 21/10/2003 12:27:19
Jesus!! That's the fastest response I've ever had!  Thank you!