I'm at my wits end, i simply can't figure out how to apply YSort to the Player (Kinematic Body2D) and Tilemap. I have no problem YSort-ing multiple Tilemap nodes, and Sprites, but not together. I just want my character to be able to walk behind a Tilemap object. Or is that not possible? Do I have to create new Sprite node for every object that the player can walk behind, and put it all together with the player under a YSort node?
Thanks in advance !
There might be an issue with the KinematicBody2D node, because when i tried putting the tilemap and a new sprite node under YSort, it worked. My KinematicBody2D doesn't have a sprite, but comprised of many polygonshape2D because I'm using skeleton animation. That might be the problem?
Now i tried it to put that sprite inside a kinematicbody2d and it doesn't work anymore.
so if like this, it worked:
if like this, it doesn't: