Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Per documentation:

If frame is not specified or is undefined, all frames will be added. Otherwise a single frame is used.

If you pass 2 for frame, the cursor will only contain that frame. That’s not a starting frame or anything, that’s the frame that will be used for the cursor.

Conveniently, it is probably what you have to do here - if your frames represent multiple cursors that you want to swap between, make multiple cursors out of those (and if the cursor contains several frames, there’s native_cursor_add_from_sprite_ext), and swap between those - swapping between already-created cursors is pretty cheap.

Roger that - yeah swapping already created cursors will be my plan, then. Thanks.

I did try not defining the frame and still had the same issue but maybe I was still not using it correctly,  but just bringing it up just in case. Thanks for the swift responses as well.