Syntax: mousescreenx
Returns a number.


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.


function onCreated()
{ = "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.



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

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