Sprite2D isn't in front of objects


Hi, I’m trying to add a sign that we can read it to my game. So basicaly, I just added a
Sprite2D and ColorRect to blur the other parts of the camera except the sign. Player can access the sign by pressing f and closing it by pressing esc. Then I tested it, the code actually worked but the sign didn’t cover the player and ship in my game. May I get your help? Thanks!

(note: I added the screenshots of problems),


You could add them as children of a new CanvasLayer, and/or set the z-index

Also, assuming no z-index differences, sprites will be rendered in the order that they appear in your node hierarchy.

1 Like