Game Maker

Mouse x

281pages on
this wiki
Add New Page
Talk0 Share

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
You can use mouse_x and mouse_y in move towards actions.
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)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki