The Daily Click ::. Forums ::. Klik Coding Help ::. Isometric grid..help
 

Post Reply  Post Oekaki 
 

Posted By Message

ESteban



Registered
  22/06/2005
Points
  1
21st November, 2005 at 01:51:43 -

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.

 
Beat The Machines
http://www.boysonboysonfilm.com/images/naruto-naruto.jpg

Robbert



Registered
  19/06/2003
Points
  420
23rd November, 2005 at 13:25:46 -

If you change your mind about using the iso grid extension, you could always check out my article about it. it's rated pretty high

 
Hey mates, I'm Iglo yeah =P!
   

Post Reply



 



Advertisement

Worth A Click