Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: eduarazo on Wed 03/12/2008 18:23:06

Title: Character faces hotspot when speaking
Post by: eduarazo on Wed 03/12/2008 18:23:06
I want the main character to look at a hotspot from its position ¿Anyone knows how to do this?

Thanks
Title: Re: Character faces hotspot when speaking
Post by: Matti on Wed 03/12/2008 18:40:56
You can use Character.FaceLocation(int x, int y) and insert the coordinates of the hotspot. There's also a FaceCharacter and FaceObject function, but none for hotspots as far as I know.
Title: Re: Character faces hotspot when speaking
Post by: Shane 'ProgZmax' Stevens on Wed 03/12/2008 19:11:41
If you want the character to look in the direction of whatever he's looking at, you can also just add a FaceLocation(mouse.x,mouse.y) call in the look interaction.
Title: Re: Character faces hotspot when speaking
Post by: eduarazo on Wed 03/12/2008 19:14:51
I did it, thanks