Character faces hotspot when speaking

Started by eduarazo, Wed 03/12/2008 18:23:06

Previous topic - Next topic

eduarazo

I want the main character to look at a hotspot from its position ¿Anyone knows how to do this?

Thanks

Matti

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.

Shane 'ProgZmax' Stevens

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.


SMF spam blocked by CleanTalk