Need a little help, if someone has the time
I am drawing my isometric tiles in an actual diamond shape. This is the method in use:
public Point isoPosToScreen(int tilex, int tiley)
{
int x = (this.tiles_width/2)(tilex-tiley);
int y = (this.tiles_height/2)(tilex+tiley);
return new Point(x, y);
}
I cannot seem to reverse it correctly however to change a screen X, screen Y back out to an isometric tile coordinate.
If someone can help me reverse this process so I can get the tileX, tileY back out, I would be very grateful.
Cheers,
Graham