Eyes that follow the player character as it moves?

I don't know if any of you guys remember the painting in the old chateau in Pokémon Diamond/Pearl/Platinum with the red eyes that follow the player as it moves
Basically I want to do the same thing by putting a shadow in the mirror (https://i.imgur.com/YuVw3kv.png) with two eyes, and I want the eyes to move a certain way as the player moves on the hallway

how can I do this?
Do you want it to be smooth and dynamic (harder), or pretty much like in the pokemon Old Chateau where the eyes just snap to the right place according to the players position (much easier)?
Do you want it to be smooth and dynamic (harder), or pretty much like in the pokemon Old Chateau where the eyes just snap to the right place according to the players position (much easier)?
The easy one should be good enough!
You need to make a sprite set like this:
{first cell: direction down: eyes look forward
second cell: direction left: eyes look left
third cell: direction right: eyes look right
fourth cell: direction up: eyes are closed
}
Kinda like this:
Spoiler
9RjVShZ.png

Then, you need to create a parallel process event. Create a variable that tracks the players x position
Spoiler
3QmtZ3f.png

Then, create a conditional branch that changes the direction of the eye sprite according to the players position on the map
Spoiler
59MMdLq.png
You need to make a sprite set like this:
{first cell: direction down: eyes look forward
second cell: direction left: eyes look left
third cell: direction right: eyes look right
fourth cell: direction up: eyes are closed
}
Kinda like this:
Spoiler
9RjVShZ.png

Then, you need to create a parallel process event. Create a variable that tracks the players x position
Spoiler
3QmtZ3f.png

Then, create a conditional branch that changes the direction of the eye sprite according to the players position on the map
Spoiler
59MMdLq.png
It's perfect! Thanks for the help
I don't think you even need to use a parallel process. I can't test it at the moment since I'm not on my computer, but if you set up your sprite correctly then you should be able to just have a custom move route with 'turn toward player', and that will make the eye sprite face the player.
That's actually true.

The only case it won't work is when you want to emulate the event where the player approaches, or looks towards the the mirror and the eyes close.

Heck, I forgot to include it in my instructions, but it's simple enough to do.

If you wanna go for efficiency, follow @hiddenone 's advice.

Plus: Try sticking a "wait" command at the end of that parallel process if you go for it. It will help.

Original thread: https://forums.rpgmakerweb.com/threads/eyes-that-follow-the-player-character-as-it-moves.96293/