Hello! I'm trying to draw a polygon between a background (sprite) and another sprite.
If I draw the polygon after sprite.update() then the sprites appear under the polygon, and if I call draw polygon before update() then the whole polygon disappears.
I also tried putting the drawing inside setBackgroundDrawingCallback() but it won't clean the background
(also ideally I do wanna put the boat sprite behind the wave and fish in front of the wave)
I'm on Windows using SDK 1.10.0. Thanks in advance.
Thank you! That works great for the z index! But now I'm not sure how to optimize the drawing rect now. It seems like it's updating the entire screen now. This is currently how I'm doing the image drawing