Wikia

Game Maker

Mouse x

Talk0
199pages on
this wiki

The x-coordinate of the mouse. This will give you the x-position of the mouse inside your game window

Example: object1.x = mouse_x
Result: Object1 will now always have the same x-coordinate as the mouse's x-coordinate. (It will stay on the same vertical line as the mouse cursor)

Around Wikia's network

Random Wiki