   Mouse Problems
  Probaly "Just Another Post"Well been using a screen to map function for a long time thining it was working..and searched the forums for an answer for this    int mouse_to_map( int mx, int my) {  // mouse x,yint sx = mx + CamX;  int sy = my + CamY;   int x = sx/32 + sy/16;  int y = -sx/32 + sy/16; cursor.tx = x /2;cursor.ty = y /2;}//drawing function//int sx = (x - y) * (32) -CamX;int sy = (x + y) * (16) -CamY;//CamX,CamY are globals for scrollingThis works, kinda, until "CamX or CamY changes"It acts like 0,0 is always in the topleft corner.This is a Diamond shaped isometric 2D map if you diddnt notice,2:1 ratio (64*32) tiles.Im just woundering how others have done this, (finding screen to map cords)edit: more detailed question [edited by - decsonic on February 14, 2004 11:29:37 AM]