How to make a sprite behind the player on one side but above the player on another

Viewed 24

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:

enter image description here enter image description here

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.

0 Answers
Related