window_set_cursor

Sets the standard cursor for the game window.

Syntax:

GML Code Example

window_set_cursor(cursor);


Argument Description
cursor The cursor to set for the game window.


Returns:N/A


Description

With this function you can set the cursor for the game window to any one of the constants listed below (to find the current cursor being used you can use the function window_get_cursor which will also return one of these constants):

Constant Cursor
cr_none

cr_default
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_appstart
cr_handpoint
cr_size_all


Example:

GML Code Example

if mouse_check_button_pressed(mb_left)
    {
    window_set_cursor(cr_drag);
    }
 

The above code will change the window cursor to the standard windows drag cursor if the left mouse button has been pressed.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here