Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Hi guys is there anyone that could help me with pathfinding in C++?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 SlashC++Programmer   Members   -  Reputation: 114

Like
0Likes
Like

Posted 31 July 2014 - 08:57 PM

Hi i'm having trouble with pathfinding. I know the logic in my head but when I write my logic from my head it isn't working.

Could someone get on skype and teach me how you program pathfinding in ++ code? If possible I like to have a session of how you code it live in team viewer.



Sponsor:

#2 minibutmany   Members   -  Reputation: 1788

Like
2Likes
Like

Posted 31 July 2014 - 09:04 PM

Check out the Artificial Intelligence articles on this site:

http://www.gamedev.net/page/resources/_/technical/artificial-intelligence/

Currently the top three are about path finding.

 

BTW you posted twice.


Edited by minibutmany, 31 July 2014 - 09:05 PM.

Stay gold, Pony Boy.

#3 Washu   Senior Moderators   -  Reputation: 6491

Like
4Likes
Like

Posted 31 July 2014 - 09:14 PM

Probably your best choice would be to learn A* or Dijkstra's graph traversal algorithms.

 

Generally speaking, when you have an "idea in your head" it is best to write it down in plain english (or whatever your native tongue is), and draw it out as well. That will help to validate that you've actually solved the problem as you think you have.


In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
ScapeCode - Blog | SlimDX


#4 SlashC++Programmer   Members   -  Reputation: 114

Like
0Likes
Like

Posted 31 July 2014 - 09:15 PM

Thank you minibutmany

Yeah it was a mistake to post twice. I tried to delete one but I couldn't find the delete post button.



#5 SlashC++Programmer   Members   -  Reputation: 114

Like
0Likes
Like

Posted 31 July 2014 - 09:30 PM

I watched a video on (What is A* Pathfinding) youtube

I know the logic behind it. The code I write isn't matching up though. :(



#6 ankhd   Members   -  Reputation: 1524

Like
0Likes
Like

Posted 01 August 2014 - 07:47 AM

Hi.

Take a Look Here






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS