Player turns to Follower

Is there a script, or a way with the actual program to have your player TURN and face your follower? I'm creating a game that has two characters that are a couple. But the problem I am running into is that I can have the follower TURN to player, but I can't have the player turn to the character. It's hard expressing their relationship when the follower just keeps staring at the back of the players head... >_>

Extra Notes: I have searched EVERYWHERE for this answer and have had no luck so this is my desperate attempt to see if anyone else out there knows something that I've somehow missed.

Thank you in advance for anyone who replies trying to help!
Unless you have a script that alters follower behavior, they should always be one step behind the player, wouldn't it be enough to have the player turn back through a move route event? BTW isn't that @Lunarea 's old avatar?
$gamePlayer.turnTowardCharacter($gamePlayer.followers()._data[0])
Set Move Route (set this to Player in top left corner)
Turn 180 degrees (if follower is directly behind) OR
Turn 90 degrees left/right.

If you're still not getting the desired result, you've got issues with game/engine/something else.

Or, try the script call that @Trihan (good buddy) just suggested before I was able to finish my post.
$gamePlayer.turnTowardCharacter($gamePlayer.followers()._data[0])

All right, I am not accustom to scripting, but I tried to play around with this to get it to work before coming back here and asking more questions. With that said, first off THANK YOU if this does end up working and if not, thank you regardless for trying to help.

Now, I've added the script (as in a script call) in an event to test it out, but what information do I place where because when I activate the event to see if the player will turn to face the follower my game just crashes. I started a new project, so Natalie is my first follower which I believe means she's the number 0 and I see in your code it has [0] but what am I doing wrong? Do I have to put the name Natalie in the () area in your code?

Sorry again if the answer is obvious.

Unless you have a script that alters follower behavior, they should always be one step behind the player, wouldn't it be enough to have the player turn back through a move route event? BTW isn't that @Lunarea 's old avatar?

I don't have a script that alters the followers behavior. The follower is always following the player but in a situation like this:
taklq8.png

She's not behind the player and that's where my problem lies. If he were to interact with the object before him and talk to her about it, she could look at him(through scripts), but he'd never face her. And, as for the user Lunarea and whatever past avatars they have had or haven't had I wouldn't know since I'm brand new here, lol. 😅


Set Move Route (set this to Player in top left corner)
Turn 180 degrees (if follower is directly behind) OR
Turn 90 degrees left/right.

If you're still not getting the desired result, you've got issues with game/engine/something else.

Or, try the script call that @Trihan (good buddy) just suggested before I was able to finish my post.

Lol, Trihan was very speedy with his reply. But, the problem I'm having isn't in situations where I know exactly where the follower/player are located. But rather in situations like the picture I posted above. When interacting with an object that isn't stationed in a place where the player can activate via ONE direction, but instead where the player can interact from it on the right, left, bottom top, etc. Which makes it impossible to know which way to turn the player so that they are facing the follower.

Message to All:
In the end, thank you all very much for replying and trying to help me out with this. I really do appreciate it especially since you guys replied so fast. 😍
I would recommend using code to handle this, as passability (or the lack of) can mean that your character can sometimes turn without moving, meaning you'll never know which way to orient them to face a follower.

Trihan is using the correct approach, but that code won't work because it is JavaScript and RPG Maker VX Ace uses Ruby (RGSS3). I don't know the code offhand you'd use to do it in RGSS3.

Something that I've done in my games for scenes is to turn player followers off, and actually depict the party members onscreen using character events (and control them using Move Routes). This is something you could consider doing for a very important scene if you can't get the motions perfect using normal followers.
Gah, I keep forgetting to check which forum I'm posting in.

$game_player.turn_toward_character($game_player.followers[0])
I would recommend using code to handle this, as passability (or the lack of) can mean that your character can sometimes turn without moving, meaning you'll never know which way to orient them to face a follower.

Trihan is using the correct approach, but that code won't work because it is JavaScript and RPG Maker VX Ace uses Ruby (RGSS3). I don't know the code offhand you'd use to do it in RGSS3.

Something that I've done in my games for scenes is to turn player followers off, and actually depict the party members onscreen using character events (and control them using Move Routes). This is something you could consider doing for a very important scene if you can't get the motions perfect using normal followers.

I posted explaining it wasn't working, but it's still waiting moderator approval. Trihan posted the right code though and so it works perfectly. Also, thank you for your suggestion and help as well on the subject. <3


Gah, I keep forgetting to check which forum I'm posting in.

$game_player.turn_toward_character($game_player.followers[0])

THANK YOU SO MUCH!!!! ♥ I know I probably look a bit crazy with that message, but you have no idea how long I've been searching for this. Thank you a million times over. Please ignore my last message it was just waiting moderator approval so I don't think any of you can see it. Also, this can be closed since it's solved.
@Adira You can simply report the first post and explain that the problem was solved, to get the topic closed.

I personally think this should be stickied. Oh, I also did the report for you.
@Adira You can simply report the first post and explain that the problem was solved, to get the topic closed.

I personally think this should be stickied. Oh, I also did the report for you.

xD I'm very new as you can tell since I didn't know that was how I was supposed to do it. But, aww thank you! That was very kind of you. ♥

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/player-turns-to-follower.75762/