Getting the mouse position

Is it possible to get the mouse X and Y position? The context is that I’m making an object to see where the mouse is without using mouse over

You can use the expressions MouseX("layer_name", camera_number)
and

MouseY("layer_name", camera_number)

The base layer can be referenced with the name “” (empty string). Finally, if you want the position in the base layer and the first camera (default layer and camera), you can use:

MouseX() and MouseY()

By the way, the basic turret tutorial explains it :wink:

1 Like