I tried making a plugin that would render impassible tiles in front of (above) the player sprite but ultimately failed to get it right. I need this because I'm using an 8-way movement plugin and when the player crosses diagonally through an impassible tile, that tile is currently rendered behind the player sprite which is incorrect in most cases and clearly looks buggy.
However, when the player is moving up-left, or up-right, then the impassible sprite should indeed appear behind the player as it does currently. For example if the player is moving upwards past the corner of a building the player sprite should obscure the building tile. But when a player is moving downwards past a tree trunk the tree should obscure the player, currently the player sprite clips through the tree. I'd settle for a z-index higher than the player sprite for impassible tiles but context dependent z-index would be ideal. Can anyone help with this kind of plugin? Note I'm using RPG Maker MV
However, when the player is moving up-left, or up-right, then the impassible sprite should indeed appear behind the player as it does currently. For example if the player is moving upwards past the corner of a building the player sprite should obscure the building tile. But when a player is moving downwards past a tree trunk the tree should obscure the player, currently the player sprite clips through the tree. I'd settle for a z-index higher than the player sprite for impassible tiles but context dependent z-index would be ideal. Can anyone help with this kind of plugin? Note I'm using RPG Maker MV