mouse_enter signal not working · Issue #4645 · godotengine/godot · GitHub How to change the Z index of all childrens based on Y position? - Godot ... Avoiding problems with z-index. Issues with manual Sprite Sorting — Godot Forum Hello all, I want to change the Z index value of my sprites according the Y position of each one. gdscript - .translated function not working in Godot / best way to ... canvas_item_set_z_index (item, rect_scale. Something like this should work when attached to the node, though I have not tested it: var canvas_rid = get_canvas_item() # You may need to adjust these values VisualServer.canvas_item_set_draw_index(100) VisualServer.canvas_item_set_z_index(100) Here's the documentation for the various functions: get_canvas_item; canvas_item_set_draw_index level 1. length () * 10.0) Hope that helps. The same happens in the 2D engine if you use Z-index for this. 118. asked Aug 29, 2016 in Engine by aaqib7 (33 points) scrollbar. Elements that are flex items or grid items can use z-index even when position is static. Bitmask: used to configure the auto tiling system. However, Godot will automatically add the node below the menu making hud take precedence. Vector3 round ( ) Returns this vector with all components rounded to the nearest integer, with halfway cases rounded away from zero. 1 Answer +2 votes Best answer If you want to use the Y-Sort option from TileMap, Node layout should look like this: -node -kinematicbody2d -kinematicbody2d and you set Ysort in Inspector of TileMap to on. Get Z index of control nodes that are added dynamically : godot const top_z := 100 In ready on the card I save the original index (can do this when adding dynamically as well): start_z = get_z_index() Then on click/drag/etc/ I set the card to the top index: set_z_index(top_z) And on release, I set it back to the original value: set_z_index(start_z) Works pretty well in my use case. How to make Control nodes stick to the top and bottom of the viewport Also gives control of the node's render order. 4 reasons your z-index isn't working (and how to fix it) The stacking contexts have hierarchy, and each stacking context is considered in the stacking order of the parent's stacking context. Hi, i trying to make sprite sorting, but manually with scripts (the Sprite Sorting Node not work for this) I trying to make the z_index to change based on the object coordinates, but not is working, and the tile are not TileMap, is a Instanced Scene in Rigid Bodies or Static Bodies (For a In-game Level Editor) In other engines i used a thing like "depth = -( x + y )".