Jump to content


Photo

How Do You Hide The Mouse?


  • Please log in to reply
10 replies to this topic

#1 Iwin

Iwin

    GMC Member

  • New Member
  • 94 posts

Posted 09 November 2008 - 04:59 PM

I have an object in my game controlled my the mouses movement, but the little white mouse icon is still there.

how do I hide it ?

Edited by Iwin, 09 November 2008 - 06:18 PM.

  • 0

#2 SenakuJin

SenakuJin

    GMC Member

  • New Member
  • 2765 posts

Posted 09 November 2008 - 05:03 PM

In game maker, click on 'Glocal Game Settings' and uncheck 'Display the cursor'
  • 0

#3 demon13

demon13

    GMC Member

  • New Member
  • 444 posts

Posted 09 November 2008 - 05:03 PM

go to the global game settings and then go to the tab that says:graphics(first tab) and then click display the cursor
  • 0

#4 Iwin

Iwin

    GMC Member

  • New Member
  • 94 posts

Posted 09 November 2008 - 05:08 PM

Thanks :]

how do I make it so the mouse is not visible for only like... the 1st room ?

Because I need a mouse for the menu selection(which is the 1st room).

Edited by Iwin, 09 November 2008 - 05:11 PM.

  • 0

#5 Southman

Southman

    I simply am not here

  • GMC Member
  • 1662 posts
  • Version:GM:Studio

Posted 09 November 2008 - 05:21 PM

window_set_cursor(curs) Sets the mouse cursor used in the window. You can use the following constant:

cr_default
cr_none
cr_arrow
cr_cross
cr_beam
cr_size_nesw
cr_size_ns
cr_size_nwse
cr_size_we
cr_uparrow
cr_hourglass
cr_drag
cr_nodrop
cr_hsplit
cr_vsplit
cr_multidrag
cr_sqlwait
cr_no
cr_appstart
cr_help
cr_handpoint
cr_size_all

In particular, to hide the mouse cursor, use cr_none as value.


  • 0

#6 Iwin

Iwin

    GMC Member

  • New Member
  • 94 posts

Posted 09 November 2008 - 05:38 PM

thanks so much !!

where did you find that list ?
  • 0

#7 GepardenK

GepardenK

    GMC Member

  • New Member
  • 28 posts

Posted 09 November 2008 - 05:40 PM

Just make your own mouse object, and set it to jump to position (mouse_x,mouse_y) every step.
Give the object a sprite you think fits for a mouse pointer, then add this object to your first room.

This object will now follow your mouse pinter, so even if the real mouse pointer is invisible, it will look its there.
  • 0

#8 Iwin

Iwin

    GMC Member

  • New Member
  • 94 posts

Posted 09 November 2008 - 06:18 PM

Just make your own mouse object, and set it to jump to position (mouse_x,mouse_y) every step.
Give the object a sprite you think fits for a mouse pointer, then add this object to your first room.

This object will now follow your mouse pinter, so even if the real mouse pointer is invisible, it will look its there.


yes. that makes the object follow the mouse, but the mouse pointer(white arrow), will still be visible.

Anyways... problem solved. :rolleyes:
  • 0

#9 Southman

Southman

    I simply am not here

  • GMC Member
  • 1662 posts
  • Version:GM:Studio

Posted 09 November 2008 - 07:43 PM

thanks so much !!

where did you find that list ?


You're welcome. And I found it in the GM manual
  • 0

#10 motadoros

motadoros

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 11 August 2010 - 02:45 PM

Why don't you use the variable cursor_sprite= "sprite filename". This function will change your cursor sprite to "sprite filename". Be careful, with the sprite filename (IT'S NOT A STRING).
  • 1

#11 majid1889

majid1889

    GMC Member

  • New Member
  • 9 posts
  • Version:GM8

Posted 30 April 2012 - 03:39 PM

Why don't you use the variable cursor_sprite= "sprite filename". This function will change your cursor sprite to "sprite filename". Be careful, with the sprite filename (IT'S NOT A STRING).

hi
where we should put it ( in which event ) ?
* OH sorry . I understood ! window_set_cursor(cr_none) :thumbsup:

Edited by majid1889, 30 April 2012 - 03:55 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users