NPCs briefly turn towards player when interacted with?

Hello
I am currently making a Yume Nikki fangame and there's a small issue
whenever the player interacts with an event, they briefly turn towards the player.
It's not a huge problem but it's kinda annoying

For example, when the player approaches an npc from the left side and interacts with them from that side, the npc will turn left just for 1 or 2 frames before turning back to the direction they were facing initially

It's especially annoying when you're making a stationary event, such as a blinking eye or a game console and when you interact with it from any other direction aside from the one its facing it will skip forward in the animation for a split second.

Any idea how to fix this? Help is appreciated.

(Ps. I use VX Ace)
In the checkbox options on the bottom-left of the event, activate "Direction Fix". This will prevent the event from changing what direction it is facing under any circumstances. The downside to this is that it also applies to regular movement, but you can also toggle the state on and off using "Direction Fix ON" & "Direction Fix OFF" in the Move Event steps or the event's custom Move Route.

So, for instance, if you have an NPC that walks in a circle, you could have steps similar to Right > Right > Direction Fix OFF > Turn Down > Direction Fix ON > Down > Down... etc.

There are fringe cases that may not work, like if the player interacts with a moving npc at just the right moment, but overall this should fix most of your problems. Just have to remember to toggle it off when you need to.👋


EDIT: You also mentioned a blinking eye or a game console - normally the idea is to have their animation placed in the character frames that are used for your walking cycle, then turn on both Direction Fix and Stepping Anim. (which makes them constantly walk in place) at the same time. Things might get tricky if you're manually turning their facing direction to do the animation.
Oh ok.
Thank you!
events should not "briefly" turn towards the player - they should remain facing the player until the event is finished, and then go back to what they were doing. You make it sound as if they face the player, then turn back to their original direction before the event has finished running. That just doesn't happen unless you have script mods causing it.

Is your problem that they turn towards the player in the first place, or that it's only briefly?

Please show a screenshot of your event (include the whole event window, not just the commands) and state what you think SHOULD be happening, or what you WANT to happen.
I guess the issue is that they turn towards they player in the first place
For example, if an NPC is only supposed to face forward and the player interacts with them from the side, the NPC will turn towards the player for a split second.
This is a problem because if its something like a computer that when interacted with will turn on, I would make a spritesheet of the computer with an animation of it turning on. (Facing down would be the computer while its off, facing left would be halfway on, and facing right would be fully on). To animate it, I would make it so when interacted with, the computer would turn down, then left, then right. But if the computer is interacted with from anywhere aside from the front, it will skip forward in the animation for a split second before continuing on as normal. It's weird and immersion breaking and stuff so I kinda want to find out a way to fix it.

Anyway, here's an image of the event window for a blinking eye with the same issue.
blinkeye.png
It works fine if it's interacted with from the front, but when interacted with from the sides it will skip forward in the animation .
(For example, if interacted with from the right, it will turn right for a split second then go back afterwards.
this is annoying because in the spritesheet facing right is a halfway blinked eye)

hopefully I explained this well enough
I just tested something like what you have and I have a solution for you.
Set the event to direction fix on.
Then in the move route turn direction fix off at the start and on at the end.
ah, okay. So when you interact, you are forcing a move route to make the event turn another direction. That's the bit I was missing. Normally, the event will turn to face the player, and will stay facing the player until all the commands have been run. The solution above using direction fix and adding those commands to the move route is exactly what you need.
Ok. Thank you!
I'll test that out and see if it works.
Okie dokie I'll test that.
Double-post notice: aypooma
If you want to add something, simply edit your earlier post and include the additional info.

Original thread: https://forums.rpgmakerweb.com/threads/npcs-briefly-turn-towards-player-when-interacted-with.90628/