Quote:
Originally Posted by Angel_Light
Please explain this :o
|
"Converts screen coordinates to level coordinates"
Each function takes two screen coordinates (an x and a y), then returns the level x or y (depending on the function).
Play around with it....
PHP Code:
//#CLIENTSIDE
function onMouseDown() {
player.chat = worldx(mousescreenx, mousescreeny) SPC worldy(mousescreenx, mousescreeny);
}
That would be more or less the same thing as outputting mousex and mousey.
I'm not entirely sure about gmap behavior though, but those can be easily converted too.
Quote:
Originally Posted by Gambet
Converts things such as mousex and mousey to level coordinates.
|
I think mousex and mousey are already in level coordinates...