Sign in to follow this  

A* for isometric map?

This topic is 3775 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

I'm trying to figure out pathfinding and A* which is a huge learning step for me since I'm relatively new to programming. I've been going over what's shown here: http://www.codeproject.com/cs/algorithms/seunghyopback.asp Now while the bulk of it makes sense to me, I'm trying to adapt it to an isometric map which is causing problems. I'm using floats everywhere instead of ints and I can't figure out what needs altering with his code, as well as now instead of just a horizontal and diagonal movement cost, there's now a vertical one as well. Should I even be using this resource or does anyone have any other suggestions?

Share this post


Link to post
Share on other sites
You should understand the theory behind A* rather than just copying code, as A* is adaptable to almost any map type, once you figure out how to determine legal moves.

Share this post


Link to post
Share on other sites

This topic is 3775 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this