Block specific direction of tile.

So i have a problem.. i know i can block direction of a tile in the tileset menu but it cause issues of walking freely on the wodden platform.
Right now he can walk out of the wodden platform from every side (picture). but I want him to be able to get off only from the ladder.
And of course without blocking move on the water Tiles.
Uff, I hate when this happens. That's a true limitation of the Mapping. You can awkwardly block all the tiles with obstacles / assets, but that would look quite dumb.

You can place some invisible events with 2 pages (one is blocking, one is not) and place them around platform. When moving over the ladder you set a switch or variable that determines if the player is on the ground or platform and then updates all the events. Yes, you would need events on the platform (when the player is on the ground) AND on the ground (when the player is on the platform). You can try it, because it's fast to do, but I bet that this solution would be too laggy.

I think you need a Plugin for that. I found this one https://forums.rpgmakerweb.com/index.php?threads/new-plugin-multi-level-map-x-y-z.78461/, maybe this is what you need. If not, I would create a JS request. Actually that would be a very cool Plugin to have "Map levels". I don't have much time right now, but I think there are many programmers here that can help you 🙂
There are some problems with that trick.. if I go down from the ladder or from another exit and then turn around right away and try to enter the platform again it will be blocked until ill touch the tile again to reactivate the switch.
And the second problem is that i can't put any events on platforms unless i have 3 rows.(2 rows are blocked by the events with the switch).
I guess I'll do some changes to my map or try the script you gave me.
Thank you ^^
As stated above you could use invisible events with switches, but perhaps that would consume a lot when updating them, what I recommend: set some invisible tiles on your tileset (you could even add an empty D or E tileset for this) and on these, block one direction, with this you'll have universal one side barriers that you can apply anywhere.

The only downside is that MV only stacks two tiles (from B to E) so sometimes this might erase the one below. Hope this helps 🙂
In theory you could do this:

1. Make Water passable (check)
2. Make the Wood Plattform passable
3. You need 8 empty Maptiles on one of your Tilesets B to E
4. Go in Database - Tilesets - Passability - 4dir Passability, Thatway you can make Tileset Tiles partialy
passable so the player can walk on them from one direction but not over to the next Tile if its not set like that.
5. If you have Problems with setting up the invisible tiles, you can exchange the Tileset with an edited
one that has the passability Arrows visible and exchange it with the invisble one when you finished the map. (My English aint the best, i hope i could explain this understandable)

Edit: A3 or was it A4 Wall Tops could also be used for more Levels of elevation. Left Right Up are unpassable, the down direction needs to be blocked by other maptiles.
Other Maptiles on Bto E Tilesets can be used to make passages open, like a ladder on a wall that leads to the wall top. Just try it, it should also work. But it seems not to fit for this particular case.
@Bex you just gave me the inspiration for the simplest trick: in the Database copy the Tileset. Then change the passability of the water and wooden tiles. Everytime you climb over the ladder, change the current tileset.

I thought much too complicated at first 😀
Nice, that is also even easier =).
Edit: That would cause problems if NPC are moving on one or both of the elevation levels.
I know that feeling of thinking one found the solution just to run into some kind of trouble around the next corner =).
you can also use empty event (same as character) that does nothing or YEP_RegionRestriction.
you can also make an autorun effect that erase itself with region check beforehand, than use
the region you specify for it.
Nice, that is also even easier =).
Edit: That would cause problems if NPC are moving on one or both of the elevation levels.
Yes 😀

But when you dont have walking NPCs up there, it would work....
I'm confused, how exactly is your requirement different from the built-in engine feature that lets you walk around on top of a wall? Is the dock not an auto-tile?
I'm confused, how exactly is your requirement different from the built-in engine feature that lets you walk around on top of a wall? Is the dock not an auto-tile?
No it's a B Tile unfortunatly.
4 direction Tile setting in Database can make Tiles halfway passable.
Here is a Picture of what i earlier mentioned.
4dirpassabilitythingy45621.PNG

Map those Empty Tiles above your normal B to E Tiles, the passability of the invisible ones will be used
for passability Settings.
The switch solution can cause problems if the player step on it and then go back without passing it.
They empty tiles looks like the best solution without scripts but they are really confusing, so i guess Ill get used to them.

Thank you all.
If you only need it for this one terrain, it's probably better to make several copies of the dock terrain with different passibility settings. If you need it for multiple terrains though, Bex's solution is more space-efficient, though I would hesitate to actually recommend it since you won't be able to see those tiles when editing your map.

Original thread: https://forums.rpgmakerweb.com/threads/block-specific-direction-of-tile.124837/