Moving Platforms - Single/Multiple Buttons

Ok, I'm back again, this time with a problem related to movable platforms.

 

As you can see in the picture below, I have two platforms (The red and blue pentagrams) and two different sets of buttons. (The red and blue buttons.) 

 

Before_anything_has_happened.png

 

the puzzle mechanic, as i intend, is set up so that when the player steps on the red buttons, the red pentagram platform will move in that direction. as this photo indicates:

 

Directional_movement_of_red_button.png

 

and along side that, when the player steps on the blue button, whichever direction he approached the button from, is the direction the platform will move. again, indicated by the below photo:

 

Directional_movement_of_blue_button.png

 

These platforms are set up so that the player can move them around via the buttons to make platforms across the pit. however, two problems occur. first off, the platforms will not move when i press the buttons unless the platforms are set to "through". so i need help setting it up so that the platforms can move around without "through" being on. because if it is on, this occurs:

 

Platforms_don't_stay_in_the_black_pit.png

 

as you can see, the platform has been moved onto the land. this CANNOT happen. it ruins the puzzle.  :c

 

and lastly, i have one other problem, it is impossible for the player to walk across the platforms whenever they are in place.

 

P.S. the platforms need to move square by square, not in a regular "timed" pattern.

 

as always, thanks in advance!

 

-pepper-
Terrain that is impassible to the player is also impassible to events - that's why you can't move the evented platforms unless you make then through.

One option would be to check the target position in the button event, only moving it if the target position is not land (for example by checking the coordinates, or by checking location info on the target position).

Another option is to use Yanfly's move restrict region script, which allows you to set region IDs that have different passability for player and for event.

In both cases, you need through on to move the event on an impassible region like that "pit".
do you have a link to that script? i would like to look into it to see if it will work.

and thank you! :3

Original thread: https://forums.rpgmakerweb.com/threads/moving-platforms-single-multiple-buttons.20141/