Help making a 'Hide' mechanic

DropDeadStudios

Veteran
Veteran
Joined
Nov 7, 2018
Messages
32
Reaction score
4
First Language
English
Primarily Uses
RMMV
I want to make a game where the player is on the run; events move towards them to try and catch them if the player gets too close to them, but there are special 'hiding places' he can use while the monsters walk by.

I'm not sure how to do this. I'm sure there are plugins/tutorials to help me with the 'proximity to the player' part, but the hide mechanic itself eludes me.

My initial thought was to make an event above the player that triggers a switch on touch that changes the enemies from 'approach' to 'random' movement, then have events under the player surrounding that cover spot that triggered on touch and turned that switch off. However, that created a huge barrier of cover since wandering monster events can't seem to cross other events, even if they are on a lower priority, so the space the monsters couldn't walk started getting really huge.

Is there a way to allow wandering monster events to cross over other events, or a better way to accomplish the 'Hide' mechanic that I just don't know about?
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
399
Reaction score
221
First Language
English
Primarily Uses
RMMV
Events cannot move through other events unless they have "through" enabled. Enable this on your "exit hide" events and the chaser will be able to move through them, they will not be able to enter your "hide" event if you keep through off.

upload_2019-1-19_16-16-55.png
 

DropDeadStudios

Veteran
Veteran
Joined
Nov 7, 2018
Messages
32
Reaction score
4
First Language
English
Primarily Uses
RMMV
Events cannot move through other events unless they have "through" enabled. Enable this on your "exit hide" events and the chaser will be able to move through them, they will not be able to enter your "hide" event if you keep through off.

I had never noticed that option! Thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top