• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Custom Cursor in Drag and Drop

G

GamingDragomachina

Guest
Hey, I'm developing a sort of five nights at freddy's style game for my girlfriends birthday coming up, and one of the things i wanted to include is a custom mouse cursor while within the game.

However, i don't have any coding experience except for other types of games i've made in game maker using Drag and Drop. I've tried searching on both YouTube and on the internet as a whole for a guide or explanation on how to create a custom mouse cursor for my game, but everything i've found is either showing how to make an object to look toward your mouse, or is in the Game maker language/traditional coding method.

Any help you could give me would be greatly appreciated.
 

TsukaYuriko

☄️
Forum Staff
Moderator
You can't find anything because there is no way.

The closest you can get is turning off drawing of the mouse cursor in the options of your target platform and drawing a sprite at the position of the mouse. This, however, will be locked to the frame rate your game runs at and may therefore appear laggy at times.


If you want a proper solution, use GML.
 
H

Homunculus

Guest
Just curious @TsukaYuriko , what do you consider the "proper" solution? As far as I know even setting cursor_sprite makes the custom cursor locked to the framerate
 

TsukaYuriko

☄️
Forum Staff
Moderator
An extension that overrides the native cursor. ;)

That aside, in terms of pure GML, there's only window_set_cursor, which lets you set the cursor to any cursor that is included in the user's cursor skin. It's "custom" in terms of not being the default, not exactly custom in terms of being able to choose any sprite.
 
Top