Hi grify,
maybe I’ve dealed with the same problem in my first game
In defold GUI and WORLD are managed separately.
Check the rendering pipeline manual
The GUI is always shown above to the WOLRD, because is rendered separately after it.
Take a look @ the default.render_script
If your sprite is always above certain GUI elements I think you can something similar at what I’ve done (description in my old post)
I’ve splitted GUI into two parts, one is rendered behind the world (in my case the world is only the puzzle grid, and I’ve managed the background in the addictional GUI)
If you have a fullscreen WORLD scene you can at opposite add an addictional render phase for sprites after the GUI rendering in the renderscript, rougly by doubling the part marked in yellow after the GUI rendering.
In this final phase you have to change rendering predicate tile_pred into something different (check the init function)
You have to create a cloned material from sprite material, with the different tag,
And apply this material to any sprite that needs to be shown above the GUI.
Hope this helps!