Problem with collision shape 2d

Godot Version

4.3

Question

ik this is really dumb and im sorry but im at my wit’s end :sob: idk why my player goes under the sprite2d, because they DO have collision shapes, theyre in the same z index (0), my player is in collision layer 1 and my sprite2d is in layer 2, i tried activating the layers alternatively to be in the same layer and it still doesn’t work!

This is the case for other sprite2ds too with no script so idk what im doing wrong huhuhuhu, thank you to anyone who might know whats wrong


i also tried enabling y sort, but now the player is just above the sprite 2d aksndakdas

Collision layers are separate from drawing layers (z index). Images are drawn based on the scene tree too, though it’s top-most siblings are drawn under the bottom nodes.

Your status has a collision shape child and a static body child, but if you check those warnings the collision shape only functions when it is a child of the static body.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.