Hello!
What I would like to do is basically update the rendering order of game objects according to their position. So for example, as shown in the image below, certain objects should appear in front of other objects when they are lower than them on the Y-axis, but behind them as they move higher on the axis.
Think of tall characters who stand in front of trees, but then may move behind them.
(sorry for the ms paint illustration)
So what would be a good way to approach this in Defold? With a quick search I saw that it may need to be handled in the render script, but any pointers in the right direction will be much appreciated