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