HELP! Conditional Branches: Character Direction

Hello All! I have been scouring the web for an answer to this. Keep in mind that I'm not very script savvy, so I have to do most things in the editor strictly via eventing. Also, if this is in the wrong place, please let me know the best place to put it. I'm feeling super discouraged and about ready to give up on this.

OKAY SO
I have a lot of different maps in my game, where the exits are on screen. Some of them are 2 to 3 tiles wide.
I need help getting the events that transfer the player to ONLY DO IT WHEN THE PLAYER IS FACING A CERTAIN DIRECTION.
The conditional branches work great for this!....... Unless the player is already standing on the tile, or if they walked onto the tile
facing the wrong direction.

I need help with figuring out a way for the event to check the character's direction regardless of whether they are facing the right
direction when they first touch the tile, or if they turn that direction, after already standing on the tile.

upload_2017-6-24_21-44-6.png
upload_2017-6-24_21-44-24.png upload_2017-6-24_21-44-38.png
You can't, because the event trigger Player Touch only activates when the player first moves onto the event, and that's when the condition is checked.

I'd just do something simple like put an obstacle on either side so the player HAS to be facing down when they move onto any of the events. Then you won't HAVE the situation where they move in from the left or right.

If you want to leave it accessible from the sides, then events with Player Touch are not the way to go - you'd be better off having a single event set to parallel processing, and using regions to identify the exits. The event would wait 10 frames or so (to avoid lag), then check to see if the player is on, say, a region 18 tile, and if they are, check to see if they're facing down. That would allow them to walk in from the left and be facing right, and then turn down while on one of the tiles, and they'll then be transferred.
You can't, because the event trigger Player Touch only activates when the player first moves onto the event, and that's when the condition is checked.

I'd just do something simple like put an obstacle on either side so the player HAS to be facing down when they move onto any of the events. Then you won't HAVE the situation where they move in from the left or right.

If you want to leave it accessible from the sides, then events with Player Touch are not the way to go - you'd be better off having a single event set to parallel processing, and using regions to identify the exits. The event would wait 10 frames or so (to avoid lag), then check to see if the player is on, say, a region 18 tile, and if they are, check to see if they're facing down. That would allow them to walk in from the left and be facing right, and then turn down while on one of the tiles, and they'll then be transferred.

Thank you! I tried a parallel process to check the direction and you're right, it lagged like crazy.
Now, forgive me, but my skillset is basically ART>PROGRAMMING. Every bit of RPGMAKER MV is a learning experience for me, and I get lost a lot looking at the help files and things. How would I go about setting up an event that does what you talked about in the last part of your reply? The more detailed and step by step the better. Think of me like a child haha. I seriously appreciate any help you are willing to give me.
either make the snow unpassable, or put transfer tiles all over the map seam.

I could post you my take on this same problem using Victor Sant's Victor Engine, but given that this is MV, and that you know close to 0 programming, you wouldn't know how to adapt it.
The OP already has transfer tiles all over the map seam. He/she only wants the transfer to happen when the player is facing a particular direction, so they should be able to walk from one tile to another without being transferred, and while standing on one of the tiles, when turning to face the correct direction, they get transferred. Regular transfer events aren't going to cut it.

OP, I did give you pretty much a step-by-step in my post, in the last paragraph.

Remove all the transfer events, and use the Region layer to draw the exit tiles. Let's assume you use region id 18.
Create ONE event and set it to parallel process. Add the following commands:
- Wait 10 Frames
- Control Variables: Player X (new variable) = Game Data > Character > Player > Map X
- Control Variables: Player Y (new variable) = Game Data > Character > Player > Map Y
- Get Location Info (page 3 under Map): Player Region (new variable) > Info Type: Region Id > Designation with Variables: Player X, Player Y
- Conditional Branch: Variable Player Region = 18
- - Conditional Branch: Character > Player is facing Down (tab 3 of conditional branch)
- - - Transfer
- - End
- End

You only need one event for each exit, no matter how many tiles it covers. You just need to make sure to draw with the correct region id over those tiles. And the Wait at the start of the event commands is what will prevent lag - if you used a parallel process event before and it lagged like crazy, you didn't have the Wait command (or didn't have it in the right place).
@Shaz your guide is nice, but still, even 10 frames lag won't avoid lag if there are 20 parallel processes on the map.

Here's a guide to how to do it purely through eventing and WITHOUT LAG.

Event, First page a touch event, will activate a switch, let's say 1, and notes player's position. For the sake of compatibility a switch for each event on the map you'll need to reserve four variables for hero's location. Two for one event and two for event next to it. And unless you are using diagonal movement, you four variables are enough, since for the third event you can use the first two variables again.
Second page is a parallel process event.
Conditional branch: If Hero's x are different from the event you're standing on or hero's y is different from the event you're standing on (in other words you moved):
Switch 1: Switch off.
Else:
If hero is facing this and this direction:
Switch: 1, off.
Transfer player

This way you only have at max 2 parallel process events active at a time and it's lighter on the game... And 100% eventing.

Now the reason why I want to do it this way is simple... This way you'll prevent all teleport events on the map from being active. Which reminds me to repeat, you should use a different switch for each map event
Why would you put 20 parallel processes on the map? One single event, set to parallel process, could handle all exits.
Oh, I see, my bad 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-conditional-branches-character-direction.80322/