How to Connect the Maps Properly using the Transfer Bug Created

I am Asking About RPGXP. I know how to connect the maps but i encountered a bug i don't know how to fix it. I don't know whether you guys understand me properly or not. But Wait i will say it properly step by step. I need to make two places where i can transfer from map1 to map2. But that two places are close to each other. So i made a event to transfer player when touching that place and also added to transfer from map1 to map2. But i can move left or right from both side that lead to a transfer how do i fix that i need some clue or way to stop from the player doing that so i added a stone there but still it wasn't appearing natural so what can i do to fix this issue.
My Bug.PNG
Open conditional branch and go to the script section

Type
Code:
$if $game.player.direction == 2 && $game_player.x == 9 && $game_player.y == 13

Close your conditional branch and teleport your player using event commands.

If you're curious

Code:
$game_player.direction == <direction>
The directions are:
[ 8 ] for up
[ 4 ] for left
[ 2 ] for down
[ 6 ] for left

Code:
$game_player.x

$game_player.x checks the X coordinates in rpg maker xp, so when I typed $game_player.x == 9 it'll check if the player is on the 9 x

and combined with &game_player.direction == 2 && $game_player.y == 13 it checks if the player is facing down on 9, 13.

Code:
 &&

is for additional clauses

without && it'll just count as one sentence

Anyway, edit 9, 13 and 8 to whatever directions and coordinates you want and turn the event into a parallel process that always checks and you'll only need one event for every teleport on your map.
Open conditional branch and go to the script section

Type
Code:
$if $game.player.direction == 2 && $game_player.x == 9 && $game_player.y == 13

Close your conditional branch and teleport your player using event commands.

If you're curious

Code:
$game_player.direction == <direction>
The directions are:
[ 8 ] for up
[ 4 ] for left
[ 2 ] for down
[ 6 ] for left

Code:
$game_player.x

$game_player.x checks the X coordinates in rpg maker xp, so when I typed $game_player.x == 9 it'll check if the player is on the 9 x

and combined with &game_player.direction == 2 && $game_player.y == 13 it checks if the player is facing down on 9, 13.

Code:
 &&

is for additional clauses

without && it'll just count as one sentence

Anyway, edit 9, 13 and 8 to whatever directions and coordinates you want and turn the event into a parallel process that always checks and you'll only need one event for every teleport on your map.
Really Thank you for your reply and it is working
A little aside:
If you hold shift while using autotile you change how it places them

Original thread: https://forums.rpgmakerweb.com/threads/how-to-connect-the-maps-properly-using-the-transfer-bug-created.133590/