Hello friends. I ran into a small problem that I can't find out how to work-around. It seems there isn't a built-in way to force the player to face a specified event. When map enemies chase a player and finally catch them, I'd like to be able to make the player face the direction of the enemy event as I also have another graphic change for the player before the battle starts. Is this at all possible? Thank you for reading.
Force player to face event?
RPG Maker VXAce SupportHave you tried "Set Movement Route" and click the direction you want them to face?
Yes, the problem is the enemy event movement chases the player down using the quickest discernible path, so there's no way to know which direction the enemy event will collide with the player. In other words, I can specify an event to face the player, but not the other way around.
Set move route is the solution, but it is not an easy one.
When the event catches up, you'll need to compared the positions to determine the Direktion the player needs to turn to, and then give those commands.
There is no single command solution, you'll have to calculate where the player needs to turn to.
When the event catches up, you'll need to compared the positions to determine the Direktion the player needs to turn to, and then give those commands.
There is no single command solution, you'll have to calculate where the player needs to turn to.
What about the conditional branch on tab 3 for If Character is facing down, left, right, left, up etc???
Edit1: Maybe you can set it up to whre IF character is facing, then set a Set movement route to face the direction.
Would that work?
Edit1: Maybe you can set it up to whre IF character is facing, then set a Set movement route to face the direction.
Would that work?
One way would be to use variables for the event location and player location. Do a comparison of the variables and determine which way to face.
There is a built in function worked in, the option is just not available in the options. You can use this script call:
$game_player.turn_toward_character($game_map.events[ID])
just replace "ID" with the event ID you want the player to face
$game_player.turn_toward_character($game_map.events[ID])
just replace "ID" with the event ID you want the player to face
I love you. Thank you very much mah man. 

Original thread: https://forums.rpgmakerweb.com/threads/force-player-to-face-event.95392/