   isometric mouse  mapping
If you assume the white rectangle is the screen, then the origin of the green tilemap (which is halfway down the left side of the rectangle) would be at (0, 80). Therefore mapx = 0 and mapy = 80.[And if the player walked down the screen, the tilemap would scroll upwards, mapy would decrease. If the player walked to the right, the tilemap would scroll to the left, and mapx would decrease. And so on.]So if the mouse was clicked at some random point, say (100, 40) you would calculate the tile co-ordinates thusly:tx = ((sx - mapx) / 64) - ((sy - mapy) / 32);ty = ((sx - mapx) / 64) + ((sy - mapy) / 32);so:tx = ((100 - 0) / 64) - ((40 - 80) / 32);ty = ((100 - 0) / 64) + ((40 - 80) / 32);tx = 1.5625 - (-1.25) = 2.8125;ty = 1.5625 + (-1.25) = 0.3125;sx=screen coordinatetx=tile coordinate!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!I FOUND THE ABOVE CODE FROM FORUMS,ITS FOR ISOMETRIC,FINDING THE TILE WHICH TH EMOUSE IS POINTING TOBUT IF MY MAP IS LIKE THE ONE BELOWHOW CAN I FIND THE TILE POSITION THAT MOUSE IS OVER????!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!thanks for reading [edited by - blue-ice2002 on February 16, 2004 4:06:46 PM][edited by - blue-ice2002 on February 16, 2004 4:17:47 PM]
  Geocities does not allow external sites to reference images on their servers. You may be able to see if fine since the image is already loaded on your system, but all that we see is a red x. ...and I believe that your second image is suppose to be a jpg, not a gif. I''m not sure what the best way to do that would be. I could probably figure out something that would work, but I''ve never done an Isometric game before so I''m sure that someone else would know a better way. ;  Check out the following article - Found it very insightfull in to getting my Mouse cord system to work. http://www.isometrix.org/archives/articles/jim_adams/s2map.htm