Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Christiaan

Iso to Map coordinates

This topic is 6921 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hiya, does anyone know a function/a way to convert iso-coordinates to map coordinates? any help would be greatly appreciated. chris

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!