How to create a simple "Push the rocks into the holes" puzzle?

I thought this would be a lot simpler than it actually turned out to be 🙁

Basically, I have a Rock event and it's set to "Player Action -> Move away from Player". Then I have another event, the Hole, but I can't figure out how to set it so that when the Rock event is on top of the Hole event, the Hole deletes itself.

I've tried to work it via this on the Rock event:

1672610932346.png



...which basically tells the game "When Rock is at this specific x,y coordinate (which are the coordinates of the Hole event), Self Switch to an empty page (to erase the rock) and set the variable "Hole1" to "1" (which activates a blank page on the Hole event, erasing the hole).

I'm sure this is really unorthodox way to do it, but even this method has some big flaws. First off, this won't work if there are multiple holes that the rock can fall into (at least without setting up specific variables for each hole). Also, more importantly, it doesn't work at all because the Hole is using a tile graphic with "X" collision (to prevent the player from walking across it), but this also prevents the actual Rock event from being able to move on top of it.

I figured these sorts of puzzles would be pretty straightforward, so maybe I'm just being a dummy, but I can't figure out a simple way to handle it. Anyone have any experience with these? I was hoping there'd be a tool for "when an event with THIS tag touches an event with THAT tag, then THING happens".
There isn't support for events colliding with one another as far as I know, you're on the right track with grabbing and comparing their x and y coords.

To get around the rock not going into the hole, set a moveroute before the rock movement that sets the hole to 'through on', and after the rock movement set it back to 'through off'.

As far checking multiple holes, duplicating your current if script for each hole should work fine, especially since each hole has it's own variable.
To get around the rock not going into the hole, set a moveroute before the rock movement that sets the hole to 'through on', and after the rock movement set it back to 'through off'.

OH, well shoot - I had tried making it so that Rock had "Through: ON" when pushed, but that allowed the rock to be pushed through walls, so I scrapped the idea. I hadn't considered setting it on the Hole instead. Thanks!
OH, well shoot - I had tried making it so that Rock had "Through: ON" when pushed, but that allowed the rock to be pushed through walls, so I scrapped the idea. I hadn't considered setting it on the Hole instead. Thanks!
That was my first instinct too but I figured it would get lost in walls, hope it works out for you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-simple-push-the-rocks-into-the-holes-puzzle.153672/