Setup:
An item takes the player from the map where they are standing to another one. I use 3 variables to get them back to the same spot, one for the x, one for y, and one for the map ID. These are set in the normal way on the transfer out and used in the transfer event which sends them back.
However, I also want the player to be facing the same direction as when they left the first map but cannot see a straightforward way of establishing it in the first place.
I have thought of using 4 temporary variables with 4 conditional branches before the first transfer, so if e.g. the player is facing right, then one would be added to temp variable 2.
Then have 4 conditionals on the transfer back which would pick up which of those variables was higher than zero and use that to, in this example, turn right.
However, that seems incredibly cumbersome, and I'm wondering if there is a script call or something which I could use?
Thanks.
An item takes the player from the map where they are standing to another one. I use 3 variables to get them back to the same spot, one for the x, one for y, and one for the map ID. These are set in the normal way on the transfer out and used in the transfer event which sends them back.
However, I also want the player to be facing the same direction as when they left the first map but cannot see a straightforward way of establishing it in the first place.
I have thought of using 4 temporary variables with 4 conditional branches before the first transfer, so if e.g. the player is facing right, then one would be added to temp variable 2.
Then have 4 conditionals on the transfer back which would pick up which of those variables was higher than zero and use that to, in this example, turn right.
However, that seems incredibly cumbersome, and I'm wondering if there is a script call or something which I could use?
Thanks.

