1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Custom Cursor in Drag and Drop

Discussion in 'Programming' started by GamingDragomachina, Dec 3, 2019.

  1. GamingDragomachina

    GamingDragomachina Member

    Joined:
    Jan 2, 2019
    Posts:
    15
    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.
     
  2. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,767
    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.
     
  3. Homunculus

    Homunculus Member

    Joined:
    Jun 20, 2016
    Posts:
    817
    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
     
  4. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,767
    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.
     
    Homunculus likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice