MazezaM Puzzles (Event Method)

MazezaM is a puzzle game that was first published in 2002. Its name is pronounced "may-zam".

The rules are very simple: The goal is to get the character from the left of the mazezam to right. The character can slide the rows of blocks left and right by pushing them.

-Source, https://sites.google.com/site/malcolmsprojects/mazezam-home-page

You can play MazezaM in your browser (thanks to Stephen Lavelle's awesome PuzzleScript):

http://www.puzzlescript.net/play.html?p=7718522

mazezam.gif


- - - - -

I wonder how to push objects that are in the row at the same time. I'm not sure how to handle events that's grouped side by side. I made an attempt for the event-

Conditional Branch- Move Route for this event goes right if Player pushed right, for the left side pushed left.

image_2023-06-20_043744854.png

Thank you for your time
Can't you just have the action button start move routes for both those buckets? And check the direction with a conditional which place the player is facing. If you don't want one in the group to move if another one can't be moved because of a wall, just first run the scripts for all to check if they can be moved, and then start the move routes only if all the can moves return true?

If other objects can somehow be brought to the row to be moved, maybe make a conditional that checks the y-coordinate of player and all movable events and move all events that have the same y-coordinate as player?
Can't you just have the action button start move routes for both those buckets? And check the direction with a conditional which place the player is facing. If you don't want one in the group to move if another one can't be moved because of a wall, just first run the scripts for all to check if they can be moved, and then start the move routes only if all the can moves return true?

If other objects can somehow be brought to the row to be moved, maybe make a conditional that checks the y-coordinate of player and all movable events and move all events that have the same y-coordinate as player?

I'll consider having conditional branch to check event id of the events moved while those that can't be skipped.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/mazezam-puzzles-event-method.158509/