E
Ephemeral
Guest
How do you convert from room coords to iso coords? I'm having a brain failure.
To convert from iso coords to room coords is straightforward:
But I'm blanking on how to do the reverse operation. It seems like it should be straightforward, but...
To convert from iso coords to room coords is straightforward:
Code:
x = (iso_x * TILE) - (iso_y * TILE);
y = (iso_y * TILE * 0.5) + (iso_x * TILE * 0.5);