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
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
⚡ WEB1 (144.76.42.176) — Testing Environment ⚡