Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / New A* Pathfinding Functions

Author
Message
luke810
17
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 20th Aug 2007 08:06 Edited at: 20th Oct 2007 02:26
Here is the new, much easier to use version of my A* Pathfinding function I was working on before I went on vacation for a week. The instructions are in the script and are pretty simple so I hope more people will try this one out.

Include File:



Edit: Updated Script

Attachments

Login to view attachments
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 29th Aug 2007 18:24
cool. i like it. where did you learn to program paths like that???
luke810
17
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 30th Aug 2007 02:53
I read about it in a book at the library by my house and decided to write it into a function for DarkBASIC Classic. There are some out already for Pro I believe. I'm working on implementing a binary heap right now to speed up the main function.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 31st Aug 2007 19:47
Are the black dots showing the path?
that's very good

Your signature has been erased by a mod because it was rubbish.
luke810
17
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 31st Aug 2007 21:49
Yes, each dot is placed at a different waypoint after calling the function.
Master Xilo
17
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 20th Oct 2007 01:48 Edited at: 20th Oct 2007 01:51
I've modified your demo program a little bit:

(you can now change the terrain) (just copy all sourcecode here


EDIT: left mouse : calc path from last to this position
right mouse: create box
middle mouse: delete box

EDIT2:
That pathfinding is so great! Can I use it in my projects (comercially?). Do I need to give credits to someone?
luke810
17
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 20th Oct 2007 02:22
No you don't need credits, but the include should be changed to this(There is a problem with the other one):

Login to post a reply

Server time is: 2024-05-03 00:37:26
Your offset time is: 2024-05-03 00:37:26