Iso to Map coordinates
hiya,
does anyone know a function/a way to convert
iso-coordinates to map coordinates? any help would be greatly appreciated.
chris
use the equation of a line and solve for the Y intercept.
y=mx+b
where b is the y intercept. X and Y are your world offsets. You then divide the intercept by your tile height. Do this for the opposite slopes (2 equations) if your so tile ratio is 2:1 (ie 64x32) wala! you have a map coordinate (x,y)
Trajar
y=mx+b
where b is the y intercept. X and Y are your world offsets. You then divide the intercept by your tile height. Do this for the opposite slopes (2 equations) if your so tile ratio is 2:1 (ie 64x32) wala! you have a map coordinate (x,y)
Trajar
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement