Help with making enemies pass through objects.

Okay, hopefully, this is the right place to post this. I have enemies on my map set to approach the player. When the enemy touches the player this causes damage. This works properly however I cannot for the life of me figure out how to make an enemy, in this case, a ghost pass through an object such as a wall but still damage the player upon touching them. I have set the enemy as an event and turned on through in options but, that causes the enemy to also pass through the player not triggering the event. Any help would be greatly appreciated. I looked everywhere for an answer but so far have been unsuccessful.

EDIT: So I was able to get it to work by placing the ghost above character now once it touches the character and the player moves the damage is taking place. If there is a better method I would love to hear it.

I've moved this thread to MV Support. Thank you.

1 way is to use YEP_RegionRestriction like place it on object where the events can walk.
be aware that ANY event can walk through, like cliffs (not the player), just enemies, npc's,
and other events.

if its a ghost only in that map or others as well, you can based that ghost, you can event
it like, if that event touches a region, through is ON, else through is off, when its NOT on the region.

there might be other methodes as well, but whatever works really depending on how you set
the event up and running.
Okay, hopefully, this is the right place to post this. I have enemies on my map set to approach the player. When the enemy touches the player this causes damage. This works properly however I cannot for the life of me figure out how to make an enemy, in this case, a ghost pass through an object such as a wall but still damage the player upon touching them. I have set the enemy as an event and turned on through in options but, that causes the enemy to also pass through the player not triggering the event. Any help would be greatly appreciated. I looked everywhere for an answer but so far have been unsuccessful.
1 way is to use YEP_RegionRestriction like place it on object where the events can walk.
be aware that ANY event can walk through, like cliffs (not the player), just enemies, npc's,
and other events.

if its a ghost only in that map or others as well, you can based that ghost, you can event
it like, if that event touches a region, through is ON, else through is off, when its NOT on the region.

there might be other methodes as well, but whatever works really depending on how you set
the event up and running.

Thanks for the reply I'll be sure to check it out.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-making-enemies-pass-through-objects.122887/