View Single Post
  #5  
Old 03-01-2007, 12:55 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Angel_Light View Post
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(mousescreenxmousescreenySPC worldy(mousescreenxmousescreeny);

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 View Post
Converts things such as mousex and mousey to level coordinates.
I think mousex and mousey are already in level coordinates...
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote