Tile passability problems

I have looked for a bit on these forums and Google and found nothing that works to solve the problem I am having. I have tried Shaz's "TerrainTags.js" and Neon Black's "CP_Star_Passability_Fix.js" and have used the latest versions (that I could find) for both. I have no other plugins that change/effect tile passability, so there is no conflict.

The Problem:

Having plants and/or other walkable tiles near the edges of cliffs makes it so the characters can ignore the "wall" and walk through in ways not meant to work. VX and VX Ace both had this problem which was simple to fix... can't say the same for MV's versions of the same problem.

Untitled-1.png Untitled-2.png

Just to make sure there is no issues with plugins I even made a fresh project and tried setting this up with nothing, then with Shaz's plugin, then added in Neon Black's.

Shaz's plugin works to an extent but not what I was hoping for, as it blocks the player from being able to move up/down from the tile with the terrain tag assigned while moving left/right works fine, though still walking over the edge of the cliff...

Untitled-3.png

Can anyone help solve this odd problem? I have been bashing my head on it all day and getting nowhere fast.
The TerrainTags plugin should do exactly what you're after.


mmm ... just tested it, and I can't walk on that tile at all. Let me tinker a bit.


Edit: I see the problem. Hold tight, and I'll give you a fix.


Edit2: here you go
Many thanks Shaz!  😀

Oddly enough I tried the "flag >> 12 === passageTerrain" but forgot to add a 3rd "=" sign  -___-

At least now it works and you have a corrected version to share 😀

You can close this anytime since it has been solved.

Original thread: https://forums.rpgmakerweb.com/threads/tile-passability-problems.51907/