I want to make something like there is in some of the early Final Fantasy games, where you can walk up to certain walls on the left and right sides of the room and you will pass under them and into the black space around the room, where you can then follow an invisible path to a secret room.
How can I achieve this?
[SIZE=12pt]You can do this with events. You'll need a character sheet with the wall tile on it, then place an event where the character should be able to walk through the wall and set the graphic to the wall tile you placed on the character sheet. Finally set the event to be 'Above characters'. So long as the tile beneath the event is passable, the character will appear to walk through the wall.[/SIZE]
Or you can use a Wall-tile that has Star passability (that wall tile needs to be on one of the B to E slots, you can't use an Autotile for this).
That will automatically place the wall above the player sprite.
The problem with that option is that sometimes when you pass under you can just see the top of the sprite's head. It's fine if you are going up or down, it's when you are going from side to side that the difficulty can occur.
no, not with those kinds of autotiles.
In those cases your only solution is to make a screenshot of the map with the tile, then cut out the 32x32 pixel area of that tile and copy it over an unused tile of one of the B to E sheets and use that modified tilesheet in the tileset for the room.
Only with that edited form from the screenshot you can place that tile correctly, because those tiles are cut and reassembled by the engine, you won't find an identical tile in the tileset.
Put a cover tile there, and then also place a blank event there with it's priority set to "Same as Characters." That should fix it. 🙂