Sign in to follow this  

Having some problems with tilebased pathfinding

Recommended Posts


[font="Arial,"]I´m making a puzzle game which needs some pathfinding to guide selected units to their destination. This is my first time dealing with any kind of pathfinding, so I´ve chosen the aStar method which was the easiest for me to understand. (thanks to this wonderfull page[url=""]http://www.policyalm...tarTutorial.htm[/url]). I´ve come quite a way, further than I expected actually but there are still some problems.
I actually have no idea what I'm doing wrong. I've looked at some other exampljes but I'm having a hard time understanding those with my little pathfinding experience[/font]
[font="Arial,"]I've made a sample on wonderfl so you can check out the source. (only the pathfinder class is of importance, you can ignore the rest I think)
[/font][font="Arial,"]You can "fork" and modify it if you think to know the solution.
Been stuck on this for a while and am eager to move on, hope you guys can help me out!

Share this post

Link to post
Share on other sites

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