Usage
Syntax: mousescreenx
Returns a number.
Explanation
mousescreenx returns the coordinate where the mouse is located at on the x-axis. It will give a coordinate based on the screen layer, where coordinates range from 0-screenwidth, where screenwidth is the width of your graal control window. If you want the x coordinate for the mouse on the tile layer, you would have to use the mousex variable.
Example
//#CLIENTSIDE
function onCreated()
{
player.chat = "My mouse is at x screen coordinate: "@ mousescreenx;
}... Would change my player's chat into "My mouse is at x screen coordinate: 363" if my mouse were at x 363 on the screen layer.
Categories
CategoryBuiltInVariable
There are no comments on this page. [Add comment]