Trigger event when action button is pressed from a specific direction of the tile

Hi there forum!


I'm stuck right now trying to figure how to make my character trigger action button events, but only when facing a certain direction of the tile, or how do I make the tile sensitive to action buttons on a certain direction?


Thanks beforehand!
You can turn on direction fix for the event.  Then add a conditional branch - if Character (player) is facing <direction> and if it's true, turn off direction fix, add a move route to make the event turn towards the player, do the rest of the event commands, then add a move route to make the event turn in its original direction and turn direction fix back on again.


If you want the player to approach from the left, your test will be Player is facing right.


Actually, what's your event?  If it doesn't have a sprite, you won't need to worry about the direction fix or move route stuff.

Original thread: https://forums.rpgmakerweb.com/threads/trigger-event-when-action-button-is-pressed-from-a-specific-direction-of-the-tile.71005/