Original Post
Hi guys, I'm currently making a game in flex and actionscript with a isometric view. The game is tile based and at certain points I need to know where the user has clicked on the grid, for pathfinding and the like. I'm having some trouble getting the correct cell based on mouse position and think my logic must be flawed somewhere. My first approach was to use parametric line intersections to work out where along the X and Y axis the click was. This produced results CLOSE to the answer but alway a few points off. Then I found this article http://www.gamedev.net/reference/articles/article747.asp and thought my problem was solved! But alas...no. I cant figure out how to get the first the cell closest to the mouse position to then use the mask on to figure out the exact cell that was clicked. Can anyone clarify things for me please?
