Is there a way to make a custom cursor?

I’m trying to add a custom cursor to put in my game, but other posts are either outdated or don’t go in-depth much about how to put a custom cursor in your game.

It is possible to do, but not without some work.

In App Lab, you need to run this code for every single element in the app, including screens:

setStyle("elementId", "cursor: url('https://studio.code.org/v3/assets/channel/cursor.png');");

As far as I know, it isn’t possible to use a completely custom cursor in Game Lab, but you can still use the cursor() function with a standard cursor type.

What are the default cursor types?

1 Like