Doors that close behind the player on entry?

Hey there!

Anybody know how I'd event a door that closes behind the player on entering a new map? For example, the player transfers out of his house, I want him to transfer onto the door, the door to open and he walks through, and the door to then close behind him.

A feature like this was included in Heretic's XP Script collection demo (found here http://rmrk.net/index.php?topic=48400.0), but it was bundled into a number of events and script calls, and I'm not sure how I'd go about recreating this in MV, particularly in the new scripting language. 

I've made a video that I've attached below showing exactly what I mean.

If anybody could give advice or point me in the direction of a script or plugin that could help achieve this, that would be amazing!

https://www.youtube.com/watch?v=QdRCELINgtw
Hey there!

Anybody know how I'd event a door that closes behind the player on entering a new map? For example, the player transfers out of his house, I want him to transfer onto the door, the door to open and he walks through, and the door to then close behind him.

A feature like this was included in Heretic's XP Script collection demo (found here http://rmrk.net/index.php?topic=48400.0), but it was bundled into a number of events and script calls, and I'm not sure how I'd go about recreating this in MV, particularly in the new scripting language. 

I've made a video that I've attached below showing exactly what I mean.

If anybody could give advice or point me in the direction of a script or plugin that could help achieve this, that would be amazing!

https://www.youtube.com/watch?v=QdRCELINgtw
its built in ^^ right click and choose quick event creation then choose door 🙂 let it make you a door. 🙂
Is the player transferring to a different? If they are it doesn't matter. It'll be the same when they re-enter the map the door resets. If not just follow the commands from the door quick event, ctrl+3, and reverse the commands.
its built in ^^ right click and choose quick event creation then choose door 🙂 let it make you a door. 🙂
That's not what I mean. Watch the video I linked, when the player transfers to the outside map from the inside, you see the player walk down out of the door and it closes behind him. It's purely a cosmetic thing but in my opinion it adds a lot to the transition between the maps, and I'm wondering how I create a transfer that closes a door behind the player, rather than the player simply 'appearing' in front of the door outside.

Sorry if I wasn't clear.
Create the door.

Open the door (set move route -> play SE, wait 3, set move route left, wait 3 set move route right, wait 3, set move route up).

Have the player walk through the door (set move route -> apply to player, through on, player move in direction of door).

Make the player invisible (set move route -> apply to player, transparent on)

Close the door (set move route -> wait 3, set move route right, wait 3, set move route left, wait 3 set move route up, play SE).

Fade out

Apply the map transfer.

Make the player visible again (also turn through off, else you will be walking through everything. Set move route -> through off, transparent off).

Fade in

If you put the event calls in that order in one event, it should work (just put all the commands I put in set move route in that order in the move route and apply them to the appropriate item, using the drop down box at the top of the move route event). The fade out/in is so the player doesn't see your player reappear on the map in the split second it takes to occur.

It's late in my time zone so I will not be able to elaborate on this more tonight, but hopefully this gets you going!

Original thread: https://forums.rpgmakerweb.com/threads/doors-that-close-behind-the-player-on-entry.48391/