Hi there,
I’m a noobie who is trying to make my first 2d top down game with Unity. I’ve been following this tutorial to emulate the 3d effect using the sorting order. I’ve follow this tutorial almost to the T.
Like in the video I put my player sprite under an empty object to offset the pivot, and put a sorting group component on it. Like in the video, when I moved the whole Parent object around a wall in Scene, it works as intend (with the character appeared behind the wall when I move up the Y-axis.)
However, the problem happen when I test in out in the game. And instead of popping up and behind according to the character movement around the wall. It seems like the sorting order remains in relative to where the character spawn and stay that way. So if I start the game with the character under the wall, he will forever be above the wall (and if I start it with him above the wall, then he will forever remain behind that wall.)
But if I took the character sprite out of the parent empty option (without the sorting group component), then it works as intend (but the pivot will stay in the middle, and I will have to change every single frame of my sprite animation.)
Am I missing something? In his video it seems to work perfectly yet mine just doesn’t want to cooperate. :(:(