Is there a way that I can change the layering of sprites depending on what direction I’m coming from or where I am in respect to the sprite?
I’m looking to do something such that it looks like this:
https://www.google.com.au/search?q=earthbound+npc&rlz=1C1ASUC_enAU623AU623&source=lnms&tbm=isch&sa=X&ved=0ahUKEwi4qqm7hsPYAhUFT7wKHQzaCLEQ_AUICigB&biw=1920&bih=949#imgrc=vURrFJJmSM4N-M:
Where, if I’m coming from an NPC from the front, then I will go over them, but if I come up to them from behind then they layer over me?