Syntax: mousescreeny
Returns a number.


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


function onCreated()
{ = "My mouse is at y screen coordinate: "@ mousescreeny;

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



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

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