Archway tiles?

So I wanted to make an archway that the player can walk under and walk on top of with a staircase leading to the top, how do I make a working archway?


(in short, an archway that doubles as a bridge)
Look for tutorials showing how you can make a bridge that can be walked under and over, and follow the same procedure.  It's just the image that you're changing.




This video shows you how to make a bridge, using events and a switch to check whether you should be over or under the bridge, just use an  archway graphic instead of the bridge graphic.
I think Neon Black's Terrain Tags script also let you do the same thing, without the need for so many events (especially if your archway and whatever it leads to would require many events - though if you're using the ceiling tiles, it's only the archway itself you'd need to use events for).  Again, it's specifically for a bridge, but I'm sure you could adapt it for things that aren't bridges but require the same kind of handling.

Original thread: https://forums.rpgmakerweb.com/threads/archway-tiles.63635/