I am having problems trying to determine which tile I have selected with the mouse.
Currently it selects two tiles, rather than one. Producing the following results:
My tiles height, is half their width, and all tiles have the same dimensions.
The tiles are rectangles and their Cartesian position has been translated to a relative isometric position.
Because I am checking the mouse position with the sprites bounds, it will select two tiles, as demonstrated in the image below:
I suppose my question is, how to I determine that my mouse x/y is within the 'diamond' of the rectangle?