I’m trying to make a menu and want to have the cursor over the button. The cursor goes underneath the button. Is there a way to fix it?
Could it be that the button is set after the cursor?
I’m trying to make a menu and want to have the cursor over the button. The cursor goes underneath the button. Is there a way to fix it?
Could it be that the button is set after the cursor?
The sprites created first in the on start block are at the bottom, newer ones at the top! put it after creating the menu!
The z index of a sprite is used to determine the order in which they are drawn - so if you want to show one sprite above others, just give it a positive z index (sprites are typically created at z == 0, and so as @randomuser mentioned it will then render in the order they are created).
Here’s the documentation page for reference: https://arcade.makecode.com/reference/sprites/sprite/z
Thanks!