window_set_cursor

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):

ConstantCursor
cr_none 
cr_defaultcr_default
cr_arrowcr_arrow
cr_crosscr_cross
cr_beamcr_beam
cr_size_neswcr_size_nesw
cr_size_nscr_size_ns
cr_size_nwsecr_size_nwse
cr_size_wecr_size_we
cr_uparrowcr_uparrow
cr_hourglasscr_hourglass
cr_dragcr_drag
cr_appstartcr_appstart
cr_handpointcr_handpoint
cr_size_allcr_size_all

 

Syntax:

window_set_cursor(cursor);

ArgumentTypeDescription
cursorCursor ConstantThe cursor to set for the game window.

 

Returns:

N/A

 

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.