How doors work?

I wish to do two tile high doors but do not know how.

I was thinking of editing one of the pngs with doors to reshape it from 4 frames, to 2, with two merges to have two frames with a 1x2 sized door.

Asking this because I do not understand how the animation works for them. Is it hard coded or the event commands below do anything to open the doors?
HLLfmw7.png

Thankss
you can alter the png for 2 tiles height or search for tall doors that has them,
than its just link the normal door event.
Is it hard coded or the event commands below do anything to open the doors?
That event does indeed open the door - it makes it turn in different directions. Regular characters tend to have sprites that face 4 different directions, but doors use this mechanism to open instead. So if you look in the sprite sheet, the closed door is the "down" facing sprite, the first opened frame "left" etc.

To have another event mimick this behaviour, simply set another move route before this one, but without waiting for completion and with a different event as a target. Or you can create a new spritesheet with a single taller event like @ShadowDragon suggested.
1) the door is animated by turning into different directions - that is a trick that works due to the way sprites contain different directions if you compare the door sprites to people sprites.

2) any size of sprite can work if you follow the rules for them. those are explained in the help files or in this tutorial:
How to create your own templates (any sprite or battler sheet) | RPG Maker Forums
Thanks! But I see that the $Gates present the new issue. It seems that these doors instead of starting from tile 1, where you place the event, overflowing to the right or left, it ends up centering the gates and ending up occupying 3 tiles instead. It is kinda weird.

Any explanation or a way to prevent the door being misplaced like that? Given that I suppose you advised me to increase png file size from standard to one fitting two tiles doors, how do I prevent the new width of the png from tampering with how the door is displayed?

Current png file size is 576x384 for !door1. So suppose I want it two tile high , I make it 1152x768? (double the size across the board?) It maintains the ratio btw.
please see the tutorial I linked above - sprites are automatically bottom-centered, so you can only use doors like that with 1 or 3 tiles width.

for two-tile-width doors you would have to split that in two events of 1 tile each, or use even more complex workarounds
I am referring to 1 tile width doors that are two tile high.
that should not be any problem if the sprite is done correctly.
Can you attach the sprite you're using and we can check what went wrong with it?
Current png file size is 576x384 for !door1. So suppose I want it two tile high , I make it 1152x768? (double the size across the board?) It maintains the ratio btw.
That would make it both taller and wider. If you only want them taller, but not wider, the size should be 576x768.
If you read the resources you've been directed to (Andar's tutorial or the section in the help file) you do not need to maintain a ratio. It is perfectly fine for each cel of the character sheet to be one tile wide and two high.
I see now. I've read the tutorial and saw multiple forum threads, but I ve lodged this forum thread nevertheless because I wasn't really understanding it easily.

Now I am doing as suggested above. Thanks a lot for your help :ahappy:

It worked! :3
It was an open and shut case.

Original thread: https://forums.rpgmakerweb.com/threads/how-doors-work.162614/