Pushing Box Trouble

I'm having problems trying to make a pushing box puzzle. The puzzle is supposed to have the player push a box on a switch so that a door can open. I figured out how to make a box push. However, I can't seem to make the box push onto a switch (a red button in my case). I've been following this tutorial on how to make this, and I've made the parallel event completely, I just can't get the box onto the button.

Also, how can I make the door lock itself and then unlock by the button push? The tutorial never answered that question.
Looking at someone else's video doesn't help us to know why your event doesn't work 😛

You need to post screenshots of what you've done in order to get help.

Also, I haven't watched that video, but I don't see why you would need any parallel event for this.
I just can't get the box onto the button
did you set the switch priority to "below characters" like in the guide?

Also, how can I make the door lock itself and then unlock by the button push?
you mean that if the rock were to be pushed off the switch, the door should lock itself again until the rock is pushed back unto the switch?

Assuming you did it as the guide did, you could have your second page on the parallel event also be parallel and track if the rock isnt at those coordinates, unflip the self switch, relock the door however you did it, and then go back to the first page
Looking at someone else's video doesn't help us to know why your event doesn't work 😛

You need to post screenshots of what you've done in order to get help.

Also, I haven't watched that video, but I don't see why you would need any parallel event for this.
1716510649196.png

1716510668306.png

1716510702577.png

1716510708207.png


I now have some screenshots to show what the map looks like, and what these events look like. Sorry for not providing screenshots earlier.
1 - You haven't checked the box for your switch to be Through. An event will always block another event, even if their priorities don't conflict, unless you turn on Through (meaning it has no collision at all).

2 - Your variables are set incorrectly in your parallel event. You're checking the X from the box but the Y from the switch - that doesn't tell you whether the box is on the right tile, it just tells you it's in the right column. X and Y need to be of the same event.

3 - Parallel events run continuously every frame - 60 times a second. Nothing in this setup needs to be checked that frequently. In fact, it only needs to be checked specifically one time - after you move the box. Take all of the commands out of the parallel event, chuck it into the garbage, and paste them into the box.

Then to add it so pushing the box off the switch closes the door again, just add Else branches to those conditionals and do so.
1 - You haven't checked the box for your switch to be Through. An event will always block another event, even if their priorities don't conflict, unless you turn on Through (meaning it has no collision at all).

2 - Your variables are set incorrectly in your parallel event. You're checking the X from the box but the Y from the switch - that doesn't tell you whether the box is on the right tile, it just tells you it's in the right column. X and Y need to be of the same event.

3 - Parallel events run continuously every frame - 60 times a second. Nothing in this setup needs to be checked that frequently. In fact, it only needs to be checked specifically one time - after you move the box. Take all of the commands out of the parallel event, chuck it into the garbage, and paste them into the box.

Then to add it so pushing the box off the switch closes the door again, just add Else branches to those conditionals and do so.
Thank you so much for the help!

Original thread: https://forums.rpgmakerweb.com/threads/pushing-box-trouble.168940/