Hide and seek (Haunting Ground/Clocktower mechanics?)

I am new to rpg maker, and I was wondering if it was at all possible to make a sort of "hide and seek" mechanic within rpg maker.

 I want to make a survival horror game where the action is mostly  solving puzzles and evading enemies, similar to the mechanics in Haunting Ground or the Clocktower games where there is a monster/stalker chasing the main character at certain points, and the main character has the option to hide and evade the enemy.  In most cases there is a slight chance the ai will find you, in which case you would have to either run and find another hiding spot, or attack the enemy.  

Is there a way to do this?  It seems like it might be possible, albeit complicated.  Any thoughts?
Anything is possible - and the mechanics you described should be easy to do as long as you're carefull with map design and switches.

You can set events to approach the player as soon as something happens (usually by switches) or to approach permanently (but being blocked by map obstacles) or in a number of different ways.
My hiding tutorial. A Small adendum to it is that you can use a single branch for the hiding mechanic part of it. Just have the top one be set as less than the variable for the hiding and then in else put what happens with the variable is the number required for the game over.




Chasing mechanics if you need them. There are other tuts on my channel as well. You can take a peek and see what else can be useful to you. :3

Original thread: https://forums.rpgmakerweb.com/threads/hide-and-seek-haunting-ground-clocktower-mechanics.42269/