A script that can be placed on Zones to make roof tiles (or other ones) disappear when the player collides and appear again when the player leaves.
How to use this script
Tile setup
The first thing you have to do is setup a Tile Set like below. You can also use the tileset that came with the zip folder if you wish.
The first tile under the red square is straight, the second is a corner and the third is the top of the roof if you will. The fourth tile should be left empty, as this is the tile we're changing to. To add more tiles to the tile-set, make sure the 4th tile is always empty (the ones highlighted).
The red square is only there to make it easier to spot the tile-set in the map editor, you can safely remove it if you want.
You can also change the tile-set to use in the script to one of your own. Go into each of the Numerical Loops and change the tiles in the Change Tile event in each of the loops. Make sure you set the correct code again for the Tile (it will be cleared when you change the tile set used)
Zone setup
First you need to setup a zone similar to the one above. Make sure it has a set height, which can be 32, 64, 96, 128 and so on. The script will replace tiles at the top of the zone.
On the Player Entered trigger, add the Zone Roof script and set it to Hide. Add another trigger for Player Left and use the same event but set the roof to Show instead.