Window mouse get x

Explanation
This function returns the x position of the mouse within the game window. If you want the value to be relative to the whole display, use. And if you want the value to be relative to the room itself use the variable mouse_x.