In the Set Move Route command it is possible to get an event to turn towards the player. I, however, want the player to turn towards an event. I cannot know which side the event will approach the player from, so can't use Turn right/left/whatever.
Is there a way of doing this?
Thank you.
In the move route, select "player", then click "script" and in the box enter
turn_toward_character($game_map.events[id of the event you want to turn toward])
There is already a turn_toward_character(character) method. character is the event you want to turn towards.
So in your move route, do this:
Script: turn_toward_character($game_map.events[15])and the subject of the move route will turn toward event 15.
edit: ah, ninja'd!
There is also a turn_away_from_character, move_toward_character, and move_away_from_character method.
I love this forum!
Thank you all so much for this. A huge help.
Unlocking to add this REALLY cool bit of information ...
You can use the above to make players OR events turn towards other events, just by changing the subject of the move route.
BUT ...
if the event they're turning towards is walking around, you can set the move route to repeat, with just that one turn_toward_character command, and they will KEEP turning towards the event as it moves - so if your NPC walks from one side of the room to the other, they'll turn to face it as it goes.
To reset it, at the end of the cutscene, just execute another move route with NO commands, and it'll cancel the repeating turn_toward_character
🙂