How do I make a Medusa type mini game?

I'm thinking of making a game where there's an enemy that turns you to stone if it looks at you and you have to get through a maze while avoiding it, except, it can also see you if you stand where a mirror could reflect your image to it. I don't think its important for the mirror to actually show your image, just want the it seeing you in the mirror and turning to stone mechanic to work. How could I do this?

I'm also open to other ideas about how this sort of hide from the monster in the maze could work. For story reasons, there can only be 1 monster so I want it to still be challenging when there's only 1 monster to avoid in the maze.

If anyone has examples of how it has been done in other games I'd be grateful too!

Edit: Actually, it might work for there to be more than one enemy so more general ideas about how a hide from the monster maze game could work are also appreciated!
Without even considering a mirror, this would require a heavy amount of eventing to accomplish the following things:

1) Returning X and Y values for the position of both the player and the creature event
2) Comparing these values
3) Running conditional branches when either value is equal to 0 (e.g., when both the character and creature event lie on the same X or Y axis)
4) Checking the facing of both the player and the creature event

I tried implementing this a couple of different ways but I couldn't find something that wasn't either inconsistent or wildly inefficient, but hopefully this will point you in the right direction or maybe someone here can use this to come up with a relatively compact script.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-medusa-type-mini-game.151267/