#Y-Sort issues

11 messages · Page 1 of 1 (latest)

ebon marlin
#

I'm currently following a tutorial and the world building section was based on a youtube tutorial that's operating on a Godot that didn't have TileMapLayer yet.

I'm wondering how I'm supposed to make it so that the Player appears infront of the sign when it's infront of it and same case as the other objects.

I'm pretty sure my y-sorts are correctly implemented and my z-indexes are on the same layer. Any ideas?

potent peak
#

May I see your player's scene? Where is his 0,0 point?

#

For Y sort to work, (0,0) of player should be at their feet.

#

Yours looks like it's on the waist or something.

ebon marlin
#

Is that what u meant?

shadow wren
#

Can you show the world scene aswell?

potent peak
#

Hey, sorry for the delay, I just realised you'd answered.

#

No, I meant the feet of the player must be on point (0,0) of the Player root (the two lines that cross in your screenshot).

#

So, move the animatedsprite and the collision shape accordingly.