Isometric tile selection
Posted
by
Dylan Lundy
on Game Development
See other posts from Game Development
or by Dylan Lundy
Published on 2012-11-30T14:59:38Z
Indexed on
2012/11/30
17:21 UTC
Read the original article
Hit count: 249
I'm not all that good with Maths. I'm trying to make a function to convert mouse coordinates into a particular tile in an isometric view.
All of the algorithms I have seen so far work with the X & Y axes going diagonal, my game is currently set up like this, and I would like to keep it so.
Is there an algorithm so that if the mouse was at the red dot, it would return the coordinates of the tile that it is sitting on? (6,2)
© Game Development or respective owner