How to make an event happen only when an actor is facing it?

Hi!
So I'm still pretty new to rpg maker, and I was wondering if there was a way to make an event happen only if the actor was facing it?

For example, if I had a drawer, it would be a little ridiculous for the player to interact with it and see what is inside from behind.
1678951807481.png


Just like this. If you can access said event from 4 different sides, you could put a condiational for each facing direction. (Though at that point it would just be accessible from all directions lol.)

Essentially if you put "Down", the event would do nothing if you interacted with it unless you're facing down while interacting.

"Pro tip": if you activate the else branch, you can put stuff like "I can't open this chest from this side." when the player is interacting with it from the wrong side!
You'll also want to check the Direction Fix box, otherwise if you approach it from a different direction, the sprite will change even though nothing will run. This means if you want it to do some kind of animation and you use a move route, the first command in your move route should be Direction Fix OFF, and the last should be Direction Fix ON.
You'll also want to check the Direction Fix box, otherwise if you approach it from a different direction, the sprite will change even though nothing will run. This means if you want it to do some kind of animation and you use a move route, the first command in your move route should be Direction Fix OFF, and the last should be Direction Fix ON.
Good addition 😀
View attachment 256072

Just like this. If you can access said event from 4 different sides, you could put a condiational for each facing direction. (Though at that point it would just be accessible from all directions lol.)

Essentially if you put "Down", the event would do nothing if you interacted with it unless you're facing down while interacting.

"Pro tip": if you activate the else branch, you can put stuff like "I can't open this chest from this side." when the player is interacting with it from the wrong side!
thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-event-happen-only-when-an-actor-is-facing-it.155861/