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)

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