How to make events that pass through each other but collide with the player character?...

Thanks for reading! Pretty basic: I have some monsters running around and they sometimes need to pass through each other for the mechanics and aesthetics of the map. At the same time, when the monsters touch the player character I want it to trigger an event. I know I can tick the "through" box and make everything pass through everything. Or I can set the priority to "same as character" so that everything collides with everything. Looking for a happy medium.

Thanks for your help and for all the great stuff on these forums!
I don't think you can do this.
Okay, thanks for responding. 🙂 Found an okay workaround where monsters jump over each other....not perfect...
Okay, thanks for responding. 🙂 Found an okay working around where monsters jump over each other....not perfect...
Would you post the workaround?
Well, it's pretty basic. I have my monsters on a loop so I calculate where they'll collide and have them jump over each other...

Not an elegant solution, but it does it...
You could do it via a plugin. But one would have to be written for you.
Maybe there's one out there already, maybe somebody has a link. Monsters that can pass through each other and still affect the player-character are a mainstay of old-time platformers....
I don't recall ever seeing any requests for it. Doesn't mean it doesn't exist. Have you searched?
If you are manually plotting their movement patterns, you can do something similar to your 'jump' solution and just change Through OFF to ON before they collide, and then back to OFF.

I did some minor searching, but did not find any plugins unfortunately.
Thanks for the ideas. I'll do some more digging this weekend. 🙂
If you are manually plotting their movement patterns, you can do something similar to your 'jump' solution and just change Through OFF to ON before they collide, and then back to OFF.

I did some minor searching, but did not find any plugins unfortunately.
I did a lot of looking and thought about your solution, but then you come into the problem of that being turned off at exactly the time that the player touches those events. I going to try and learn some jscript so that I can figure these things out on my own. Ideally, and I'm pretty sure you can't do this, you would be able to have the events set to through and still be able to detect if a player collides with it. The only solution I was able to come up with would be to have them set to complex patrol routes and handle any overlap manually. This really isn't a solution though.
Yeah, I'm not sure how it is set up so I'm not sure if the player would be able to touch them before they come off transparency or not. It depends on how the pathing is set up and whatnot.

Otherwise, like @Shaz said you could do it via a plugin. Some sort of plugin command you could give an event so that it only can touch actors or something, and ignores other events is what I'm thinking. But I'm not JS savvy, so I'm not 100% sure exactly how that works on the coding end.
I think it would be really easy to do. When an event moves, it does a check to see if there are any other events, or the player, on the tile it's moving to. It would simply be a matter of identifying which events can pass through which other events, and add that one check to the "are there any other events on this tile" function. All that's needed is how are you going to identify which events can pass through others, and which events they are allowed to pass through.
I have a couple of javascript friends, I might see if they can help. Might see one this weekend. If they write me a plug-in I'll definitely post it. 🙂

The plug-in solution would be perfect. Since I have the player-character respawning on the same map when a monster nabs him, the monster-loops can change. So the "through-on then through-off" (and my jumping-over-each-other) idea won't work.

So it looks like I don't have a workable solution.

Thanks to everyone who's researched or thought about it.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-events-that-pass-through-each-other-but-collide-with-the-player-character.85399/