I want to make a table in my 2d game that the player can appear behind when he's above it, and in front of when he's below it. Images displaying what I'm trying to do:
You can see by the pictures that I want to be able to walk behind the Admin Table, but then also appear in front of it when I'm below it. How does one do this?
Effectively, I need the ability to indicate that part of a sprite needs to be in one sorting layer, while another part needs to be in another.

