0 Members and 3 Guests are viewing this topic.
Subtract the sprite's position from the mouse position?(If your sprite is rotated or scaled, take into account its whole transform.)
Either convert the world coordinates to pixel coordinates or the other way around. The functions you'll be interested in are: window.mapPixelToCoords or window.mapCoordsToPixelFor further details look at the view tutorial and the documentation.