I need a script for a house door, as seen in LttP. It would have to do the following:

  • It would be 1x2 tiles in size to fit with the regular LttP building doors. As a house door, this would also graphically include part of the archway, but as a castle/sanctuary door, it wouldn't.
  • When Link touches it, it will wait for 1 frame (much faster than a dungeon door, but not instant), then simply vanish while simultaneously playing a sound effect. It will be gone until he re-enters the screen.
  • If Link enters the screen from anywhere outside of a 16 pixel radius around the door, it will show itself. Otherwise, it will stay hidden, to make sure it's not in the way when he emerges from the building.


This will allow me to add an extra little touch to the doors in Lightworld DX, instead of using klunky, soundless secret flags that will only ever work once and stay that way forever.