Staples

Villager
Member
Joined
Oct 28, 2021
Messages
6
Reaction score
5
First Language
English
Primarily Uses
RMVXA
So I'm pretty new to RPG Maker and I had this horror game where an NPC is going to chase you through a maze, inside it, there are specific areas I want the NPC to be unable to go through but is passable by the player. Does anyone know the simplest way to make it happen? Thanks :D
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,198
Reaction score
15,546
First Language
English
Primarily Uses
RMMV
If it's a fairly narrow area, you can just put down an event with no sprite where you want your NPC to stop. Make sure the priority is Below Characters and Through is not checked (these should both happen by default).

An event will not move onto a tile occupied by another event, regardless of priority, unless one of them is set to Through.

If it is a large area without any kind of "bottleneck" to pass through, you might be better off using a script for "region restrictions".
 

Staples

Villager
Member
Joined
Oct 28, 2021
Messages
6
Reaction score
5
First Language
English
Primarily Uses
RMVXA
If it's a fairly narrow area, you can just put down an event with no sprite where you want your NPC to stop. Make sure the priority is Below Characters and Through is not checked (these should both happen by default).

An event will not move onto a tile occupied by another event, regardless of priority, unless one of them is set to Through.

If it is a large area without any kind of "bottleneck" to pass through, you might be better off using a script for "region restrictions".
Thank you very much!
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,392
Reaction score
810
First Language
English
Primarily Uses
RMVXA
yanfly region restrict works well if you want to try that.
There are mods for it as well, that I made, if you search.
 

Latest Threads

Latest Profile Posts

aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v
Well, I've got a party tomorrow, and my friends are coming over. I wanted to work a bit on the Fandom Scouts assets so I can be ready when that update arrives... in other news, Pizza Time Horror is getting a second teaser, and it shows Cabaret Helen's last performance before the location closed.
Also who used to be scared of Chuck E as a kid? I was! Now I love him!
The new cards and what they do:

(I am clearly not a youtuber... Haha)

Forum statistics

Threads
117,275
Messages
1,106,053
Members
153,450
Latest member
BRCMuller
Top