Walking behind walls! Am i doing this right?

Alright, I'm going to struggle to explain this probably, so please bare with me.

I'm trying to get it so you can walk up and behind walls like this:

upload_2018-12-17_22-11-26.png


Now, the way I'm doing it at the moment is anything that the player can pass behind like that, I then go and make a tile for it. You can see it below. I had to make those corner pieces that are on either end of the image because the character was poking out a bit.

These tiles are all on my C sheet.

upload_2018-12-17_22-12-49.png


This workflow doesn't take me too long. One thing that is annoying though is that the player can walk behind the wall like that, but then keep on walking down further and further, which is obviously wrong:

upload_2018-12-17_22-15-18.png


So, in those new tiles I've got up top, I do have a pure black one. Do I just need to go around and fill everything outside with those as well?

Is the way I'm approaching all this the best way to do it?

I did try OC Rams plugin that lets you just paint regions in and it all works automatically without the need for any extra tiles, but it doesn't work well with Galv's Camera Controls, which I use for cutscenes and the smooth/sliding camera effect it adds to player movement (which I don't really want to go without).

I'm also getting this problem:

upload_2018-12-17_22-30-31.png


Which I'm pretty sure is caused by the characters I'm using being bigger than a 48 tile as that one is 51 wide. Is there anything I can do to make this issue go away?

Honestly, the last part is probably my biggest concern. If I can't make that issue go away, then I'd probably have to ditch having these walk behind walls altogether.

EDIT: Did just discover that I can put an event on those corners where the sprite is poking out the side. I just leave it blank and change it so it's the same level as the player and it stops the player and doesn't produce the graphic issue.

It ain't exactly ideal, but it works, I suppose.

EDIT AGAIN: Just tried that Restrict Regions plugin by Yanfly. That pretty much fixes my last issue with the sprites poking out. Easy to use too!
Can you show us how you have it set up in the tileset database?
Can you show us how you have it set up in the tileset database?

Sure. Is this all you need to see?
you cannot make the wall passable, that is what will result in your problem.
instead the top tile of "behind the wall" needs to have a passable floor placed on it (bottom layer), and then the tile from C with the star passability on the top of the wall needs to be placed on the upper layer of the same position.
The wall needs to remain impassable and start a row below the passable tiles.
you cannot make the wall passable, that is what will result in your problem.
instead the top tile of "behind the wall" needs to have a passable floor placed on it (bottom layer), and then the tile from C with the star passability on the top of the wall needs to be placed on the upper layer of the same position.
The wall needs to remain impassable and start a row below the passable tiles.

Yeah, that's what I've been doing: regular floor tile and then the passable wall version over the top of it. Now, to stop the player moving even further down, I'm using Yanfly's restrict regions plugin and just painting impassable regions below. It seems to work.

Original thread: https://forums.rpgmakerweb.com/threads/walking-behind-walls-am-i-doing-this-right.103372/