Boulder/Switch Issue

So I am having some trouble with my switch and boulder event. When I have my character stand on the button, the sound doesn't stop playing also same with the boulder on it. Plus it also keeps going from up to down with the sprite repeatedly until the character or boulder are off of the button. How do I fix these issues?
1687929843510.png

1687929865569.png

1687929882480.png

I have a common event going that deals with the player and boulder positions. Thanks for any help.
There is no way for you to know which of your events is running first. For this reason, you have to handle everything in a single parallel process event, or you might have the one which deals with position run in the wrong order and have artifacts like the one you mentioned.

On top of it, there is no need to have differennt pages to handle said switch. The switch event can be just graphics, no need to have any logic in it.

Put all the logic in a single event using if/else branches to check whether anything is standing on the switch (either the boulder or the player).
There is no way for you to know which of your events is running first. For this reason, you have to handle everything in a single parallel process event, or you might have the one which deals with position run in the wrong order and have artifacts like the one you mentioned.

On top of it, there is no need to have different pages to handle said switch. The switch event can be just graphics, no need to have any logic in it.

Put all the logic in a single event using if/else branches to check whether anything is standing on the switch (either the boulder or the player).
So I only have two parallel events total: Player coordinates, and Switch
1687931199810.png

I do apologize, but what do you mean by putting all the logic in a single event. I have the player coordinates event run for each map, just without the boulder part added.
This thread is being closed due to being solved. If you would like it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/boulder-switch-issue.158764/