Advertisement Jump to content
  • Advertisement


Sign in to follow this  
  • entries
  • comments
  • views

Pathing done

Sign in to follow this  


First of all you have to know that I had two different versions of path finding methods. The problem I found (after a couple of hours of searching) was that I was referencing THE WRONG DANG METHOD!!! I hate it when I do that. And you'll like this:

OLD METHOD: public void pathFind(Actor a, int x, int y)
NEW METHOD: public void PathFind(Actor a, int x, int y)

So it was all the difference between ONE LETTER!

Anyway.... arg.
Sign in to follow this  


Recommended Comments

Well, if you've got exchangeable algorithms for the pathfinding you should consider using the Strategy design pattern. Apart from that having a method name start with an uppercase letter isn't the code style. May I recommend calling that method 'findPath'?

Share this comment

Link to comment

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
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!