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.

Code Snippets / 3D Path finding for upcoming game (DBPro only)

Author
Message
Chibi Babble
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location:
Posted: 13th Feb 2005 13:21
Hello!

I have been searching for an easy way to implement path-finding into my new online game, but was unable to do so. That is until Van-B posted his 2D path-finding code. I have updated it to fit for my game (which is in 3D). Since I had such a hard time finding a way to work this is 3D, and finally suceeded, I have decided to post it here so that if anyone else was in the situation I was in, they wouldn't have to look too far. None of the code is commented, but I hope it helps you all out. As for the game I'm programing, here's a screenshot:

Chibi?

Attachments

Login to view attachments
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 14th Feb 2005 02:49
Keeps crashing.
Quote: "Runtime Error 118 - Array does not exist or array subscript out of bounds at line 158"

Before it crashed it was very good.

[url]andrewneale2004@yahoo.com[/url]
http://www.freewebs.com/elbsoftware/index.htm
Chibi Babble
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location:
Posted: 14th Feb 2005 08:41 Edited at: 14th Feb 2005 09:13
odd. What version DBPro are you using? I'll look into it.

edit:

How about this:


BTW, anyone else recieve this error?

Chibi?
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 15th Feb 2005 05:53 Edited at: 6th Dec 2005 12:48
Quote: "BTW, anyone else recieve this error?"


Nope

But it's Van B's code .. right?


.::Studying game design at the moment::.
sadsack
20
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 15th Feb 2005 12:36
it works fine now.
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 16th Feb 2005 08:11
That is awesome!

It has been said that the body is a slave to the mind. Only the mind knows no freedom.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 16th Feb 2005 19:59
Yeah no crashes now.

[url]andrewneale2004@yahoo.com[/url]
http://www.freewebs.com/elbsoftware/index.htm
Chibi Babble
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location:
Posted: 24th Feb 2005 11:47
I hope you all found it helpful.

Chibi?

Login to post a reply

Server time is: 2024-11-23 14:08:58
Your offset time is: 2024-11-23 14:08:58