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...
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. 🙂
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.