Usage

Syntax: mousey
Returns a number.

Explanation

mousey returns the coordinate where the mouse is located at on the y-axis. It will give the coordinate based on the tile layer, where coordinates range from 0-64. If you want the y coordinate for the mouse on the screen layer, you would have to use the mousescreeny variable.

Example

//#CLIENTSIDE
function onCreated()
{
  player.chat = "My mouse is at y coordinate: "@ mousex;
}

... Would change my player's chat into "My mouse is at y coordinate: 17" if my mouse were at y 17 on the tile layer.

Categories

CategoryBuiltInVariable

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki