How to get characters to render in different layer but on the same axis

223130-gg.png

How to get characters to render in different layer but on the same axis. The way these ghosts are in mario…they are 3D…but appear on the top layer - rather than colliding / clipping with the wall