What is the optimal way to make a transfer event?

I feel like I'm missing something incredibly obvious regarding this. The way I currently have it set up is a player touch event, that is below the player, that when touched transfers the player to the desired map. However, the biggest issue with this is that because of how I designed the maps, the player always transfers to the location of one of *that* map's transfer events. So, I use a directional check to ensure they're facing the right direction. Yet, despite this, whenever I use a map transfer like this, if the player immediately attempts to turn around and return to where they were, they won't transfer. They have to walk a tile over, then re-step onto the tile.

I'm positive I've seen Maker games get around this, and I for the life of me can't figure out how. It's such a basic element that I feel a bit like an idiot right now. Most tutorials regarding the subject read something along the lines of "omg u nub just use transfer player," hence my asking for a bit of a more in-depth look at how to PROPERLY make them vs "eh, it works, whatever."
The usual way to make a transfer event is to use quick event creation (right-click on the map), but the target should not be the place of the other map's transfer event, but one step more into the other map.
Like I said in the original post, I know the basic way to make one. Transferring in an additional step.. just feels dirty, and wrong. I made the thread looking for a way to fill the gap.
Why does it feel dirty and wrong? It's the way most people do it.
Why not have the regular event process in the transfer event, then underneath all of those commands make a conditional branch that checks to see if the player is facing down. Inside of the branch, copy the commands from above into it.
Think about in real life. If you are standing in the doorway, it can be awkward to turn around and go back out. You would almost automatically walk through the doorway and step into the room. Then you have to step back through the doorway to get out.  Think of the whole square the event is on as the doorway and it won't seem "dirty and wrong."

I've also seen some people use a black tile where the transfer event is to suggest an "in-between" space.
Why not just move the transfer event so the characters can appear near the edge of the map?
mmm ... I guess it's just so common that you make them transfer INTO the map they're going to rather than just standing at the edge, that people accept it without question.


If you really, REALLY hate that, note that Player Touch events do not execute if the player touches them because of a Set Move Route command - even when that step is the last one of the move route. It MAY be possible to write a script mod that will treat player touch events the same if the player ends up on that event as the result of a Transfer command.


Let me know if you want to do that, and I'll move this thread to Script Requests for you.
You can use a parallel process event which checks for player location and facing.. 🙂
You know, if the concern is maps that are supposed to be part of one larger map (like exterior maps) and "seamless", you could always map the edges to be the same. Then when you transfer the player one square in, it will seem as if they just took that next step.

Spoiler
ldFdaEA.png
Why not just move the transfer event so the characters can appear near the edge of the map?
Camera would still move, showing either black-ness or creating another "gap," if that makes sense. Maybe I misunderstood your question?

mmm ... I guess it's just so common that you make them transfer INTO the map they're going to rather than just standing at the edge, that people accept it without question.

If you really, REALLY hate that, note that Player Touch events do not execute if the player touches them because of a Set Move Route command - even when that step is the last one of the move route. It MAY be possible to write a script mod that will treat player touch events the same if the player ends up on that event as the result of a Transfer command.

Let me know if you want to do that, and I'll move this thread to Script Requests for you.
Are Transfer commands considered Set Move Routes? If that's the case, it would be greatly appreciated. 🙂

You can use a parallel process event which checks for player location and facing.. 🙂
I've considered it, might be what I end up doing. Just concerned over adding any unnecessary parallel processes, as even if it calls every 20 frames, that's roughly 3 calls a second that 99.99% of the time will be absolutely wasted.

Thank you, everyone, for the attempts to help, and the ideas!
No, they are not. That is why I said it MIGHT be possible to script transfer events to behave the same way as move routes by not triggering an event that's landed on.
I'm still curious what exactly about it bothers you so much. Not judging just trying to understand a different perspective on it. Maybe there's some aspect to it I've never noticed.
Just a preference, I'd say.
You should be able to do what you're looking for by making the Transfer event a Player Touch trigger set one tile back from where the player is standing when he chooses to use the warp, with "Through" set to OFF and Priority set to Same as Characters.  In other words, set it up like you would as if the Warp event were something on the wall that the player would need to walk up and touch to activate.
Camera would still move, showing either black-ness or creating another "gap," if that makes sense. Maybe I misunderstood your question?
You should be able to create your maps such that


1. The camera maintains the same position even when you transfer from to a new map (see mlogan's example. Instead of showing darkness, you would just show parts of the other map). Since the camera is centered by default, as long as you're not on the edge of the map, the player will always be centered.


2. The transfer event is placed one tile behind where you would appear. You are still going to transfer the player one tile in front of the new transfer event, but you won't look like you already took an extra step into the map.
You should be able to create your maps such that

1. The camera maintains the same position even when you transfer from to a new map (see mlogan's example. Instead of showing darkness, you would just show parts of the other map). Since the camera is centered by default, as long as you're not on the edge of the map, the player will always be centered.

2. The transfer event is placed one tile behind where you would appear. You are still going to transfer the player one tile in front of the new transfer event, but you won't look like you already took an extra step into the map.
1 isn't feasible because the maps don't perfectly line up, I put gameplay before aesthetics in that department. I don't think I'm understanding 2, because it sounds to me like "add a border to your maps, and have the event be on the border." Which would mess with the camera.

I'm still curious what exactly about it bothers you so much. Not judging just trying to understand a different perspective on it. Maybe there's some aspect to it I've never noticed.
Perhaps it shouldn't bother me as much as it does, but it's an incredibly basic element. Movement is a way for the player to interact with the world. Every single 2d game I've ever played, to my recollection, has started the player ON that block, not NEXT to it. It is at the core, a matter of polish to me.
Then just do the parallel process thingy. End of story. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-optimal-way-to-make-a-transfer-event.44321/