Player mirroring script request

I've been trying to find a way to make an event move as if it was a reflection of the player, meaning it moves left and right just as the player does, but when the player moves upwards (and thus closer to the mirror) the event moves downwards, same with moving down, the event would move up.


I've found a similar thread, but it doesn't do quite what I want. The event either moves exactly the same as the player, or exactly opposite. I haven't been able to change the script to do what I want myself either, I don't really have much experience with coding I'm afraid.


So if anyone could help me with this, that'd be much appreciated!

Original thread: https://forums.rpgmakerweb.com/threads/player-mirroring-script-request.65461/