I been trying to make an application that sets an isometric grid.
I want to click whith the mouse, get x and y for the grid, and position an object on that grid...
What I do is that a set up two counter one Xmouse(i set it to the position of the mouse) and Ymouse then I set to more counters isomosueX, isomouseY. Afterward I set isomouseX to (xmouse/spacing +2.0 ymouse/spacing)/2.0 and isomouseY to (xmouse/spacing -2.0 ymouse/spacing)/2.0 But everytime I try to set an object by using the formula to transform back the isomouseX,Y to set the obejt on the x and y axis that conreponds to the grid, it set the object in a different location. And usully the counter results in decimal that dont match the actual x and y of my grid... can someone help please...
note: I don't want to use the isometric grid extencion since i want more control over my proggram.