window_mouse_get_x()

This will return the x position of the mouse within the game screen:

 

Example

wheresmousex = window_mouse_get_x();

 

If, for example, the mouse was in the top-left corner of the screen, wheremousex would return a 0 (0 x 0 coords)

 

Revision #1