Kaiochao wrote:
[Jun 1 2011, 11:50 am (Edited on Jun 1 2011, 12:04 pm)] I've been experiencing strange issues with the mouse coordinate retrieval.
client.mapx and client.mapy are somehow related with the mob's position on the map, which screws up my mouse aiming. When the mob is at turf 1,1 the bottom left corner of his tile is pixel 1,1. When the mob is at turf 1,55 the bottom left corner of his tile is pixel 1,55. The bottom left corner should always be 1,1 no matter where the mob is on the map, right?
edit: Also, the mouse only updates position when it moves; when the player moves without moving the mouse, the coordinates do not change.