Advertisement

Iso to Map coordinates

Started by May 13, 2000 08:23 AM
0 comments, last by Christiaan 24 years, 7 months ago
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

This topic is closed to new replies.

Advertisement