Is there a way to make the player face an event without knowing exactly where it will end up?

I know in Set Move Route you can have have an event face towards the player, but is there a way to have the player face towards an event?

I have an event that triggers another character to walk up to you, using "move towards player" with Skip If Cannot Move. However, you have another character following you, so depending on how you approach the trigger event, this character will walk up to a different side of you. Aaaand... of course it just looks weird if your character isn't looking at the one you're talking to.

Is there anything that can be done to help?
In the Set Move Route, hit the Script button, and type something like this (let's say you want to turn towards event 8):

Code:
turn_toward_character($game_map.events[8])
You can also use the move_toward_character($game_map.events[id]) method. And they both have an opposing method that turns/moves you away from the event as well: turn_away_from_character($game_map.events[id]) and move_away_from_character($game_map.events[id])
Wow! You have a script for everything! Thank you Shaz!
🙂 Not everything.


I thought I'd actually written that because it wasn't included. But then I looked at an unaltered script and it had them as well. I think all I'd done was make an alteration so I could just pass in a number and have it figure out which event to use. Because I was lazy and didn't want to keep typing $game_map.events[] all the time 😀


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-make-the-player-face-an-event-without-knowing-exactly-where-it-will-end-up.23266/