Possible to use Conditional Branch to change a tile image?

Hello folks,

I'm trying to make it so that when a boulder is pushed on top of a switch, a door opens up.

I've got it set so that the switch works, and the door will "open" when the player touches it, but I want the door to look open (change tiles) when the switch is pressed.

Here's what I've got so far:

boulder_switch01.pngboulder_switch02.png

(Big thanks to Shaz, whose advice I took in someone else's thread)

Any help would be appreciated. I'm sure it's something simple that I'm missing, but for the life of me, I've not been able to figure it out.
You can set the move route for the door event from the event you're using to open it.

Try this:

Turn Left

Wait 3 Frames

Turn Right

Wait 3

Turn Up

That's the standard door animation.

Edit: Hmm, I'll be a bit more specific since that was kind of weirdly said. When you go into the set move route option there is a drop down menu in the upper left corner. You can select which event to move from there. Using that you can open the door using a different event, like your switch being pressed.
You've got your door event set to event touch. But that's not what you want.

For the door, just have a 2 page event. First page will be the closed door, second page will be the open door - if you're going to do a transfer, put it on the second page and have that set to Player Touch.

The commands you've got on the door event there, move to the boulder event instead. That's what will change the condition, and that's what will trigger the door to open or not. Set its trigger to Player Touch as well. The boulder event should look like this:

Page 1:

Set Move Route (this event): Move Away from Player (wait for completion)Control Variables (get boulder X position)Control Variables (get boulder Y position)Get Location Info (get region tag for boulder)Conditional Branch: Boulder Region tag is the right one Control Switches (open door) = ONBranch EndPage 2:boulder image, conditioned by (open door) switch, action button trigger, no movement commands (to stop the player moving the boulder around after getting it on the switch).

The second page of the door event will be conditioned by the (open door) switch.
Thank you for your help, folks! I was able to get it to work thanks to Shaz's advice, and with a specific switch order required as well!

EDIT: Kyonko802, that wasn't quite what I was looking for, but it's very neat and I'll be using it, too. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-use-conditional-branch-to-change-a-tile-image.50211/