MZ Walk Behind Desk Parallax Map

Hi! Right now, I'm trying to use parallax mapping to make a classroom, but a problem I've encountered is trying to get characters to be able to walk 'behind' a desk without it not clipping when they walk 'in front' of it.

Below I've attached an example with what I mean. When behind the desk, my character is shown below the part that would intersect with their body, but when walking up to it instead, the part on top also goes through his head.

I'm using GALV's LayerGraphics plugin for this--would any of you know how to make this work? Thank you!

1756022601573.png
1756022709255.png
Depending on your map change the z layer of that part with a parallel event (checking player y-coordinate) or a player touch event at a correct spot.
Depending on your map change the z layer of that part with a parallel event (checking player y-coordinate) or a player touch event at a correct spot.
How exactly could I make an event check for the y-coordinate? I'm looking at the conditional branches in the event page, but I don't see anything for coordinates
Control variables has options to get coordinates. Then you can use the variable in the conditional.
Control variables has options to get coordinates. Then you can use the variable in the conditional.
So something like this? I'm trying to get it to work right now, but so far all it's doing is either still clipping above the player or getting errors when i try to include the 'remove layer' plugin command

1756035057732.png
You have different ids there, so it's creating 2 layers. Use same id to replace it.
You have different ids there, so it's creating 2 layers. Use same id to replace it.
That seemed to do the trick, thank you!

Although, now there's also a second problem T-T

As you can see, I'm planning on adding an NPC that walks left and right from the desk to an (off screen in the photos) whiteboard, but when the player is below the desk (so the parallax top part of the desk isn't activated, the NPC's legs appear on the table.

From what I can tell, putting the NPC's priority to 'below character' fixes this, but it makes it so I can walk through them, which I don't really like. Do you happen to know what I could possibly do about this?

1756040451734.png
1756040479285.png
Hmmm, put an invisible event (same as characters) on top of the below characters NPC and have it move in sync with the NPC in move routes LOL (you can transfer the invisible event on top with an autorun event and then erase it).
Or depending how your NPC moves maybe change it to a different page with different priority depending on your player y.
Or maybe someone else has a different suggestion.
Hmmm, put an invisible event (same as characters) on top of the below characters NPC and have it move in sync with the NPC in move routes LOL (you can transfer the invisible event on top with an autorun event and then erase it).
Or depending how your NPC moves maybe change it to a different page with different priority depending on your player y.
Or maybe someone else has a different suggestion.
I guess it's not really an ideal solution, but for now I think I'll use that invisible event-transfer since that feels like the simplest one.

Thank you so so much for all of your help!
There is a plugin that makes tiles work like billboards (as they call it) that has it that if you set the passability just right on both tiles it will do what you want. This is the plugin: https://github.com/tonbijp/RPGMakerMZ/blob/master/TF_Billboard.js

So far it seems to work with other plugins I have as long as I put it at the very bottom of the plugin list, but you may need to experiment.
There is a plugin that makes tiles work like billboards (as they call it) that has it that if you set the passability just right on both tiles it will do what you want. This is the plugin: https://github.com/tonbijp/RPGMakerMZ/blob/master/TF_Billboard.js

So far it seems to work with other plugins I have as long as I put it at the very bottom of the plugin list, but you may need to experiment.
Thank you for the suggestion, but the thing is that I'm using parallax mapping instead of tilesets (unless it works with that?)

I'll try checking it out later though, so thanks again for sending this to me!
Yeah doubt it will work then as the picture layer is higher IIRC. Might still work if the passability is set just right, so we could both be surprised.

Original thread: https://forums.rpgmakerweb.com/threads/walk-behind-desk-parallax-map.179741/