Sign in to follow this  

Having some problems with tilebased pathfinding

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

[size="2"]Hello,

[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.policyalmanac.org/games/aStarTutorial.htm"]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,"]
[/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)
[url="http://wonderfl.net/c/hRtO"]http://wonderfl.net/c/hRtO[/url]
[/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!
[/font][/size]

Share this post


Link to post
Share on other sites

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