PDA

View Full Version : PathFinding for Asphyre?



cyberarrow
26-06-2008, 12:09 AM
Hello

I want code one pathfinding like in this picture but using asphyre extreme:

http://img237.imageshack.us/img237/5568/pathsearchvq3.png

but dont know how to start... can somebody help?

in the website of the creator i cant found the sources...............

Greets

pstudio
26-06-2008, 12:24 AM
I'm not sure I understand your question.
Asphyre has nothing to do with pathfinding. Asphyre is a framework that makes game development easier, but there's nothing in there AFAIK that does any game logic.
The algorithm used in your screenshot is the common A* algorithm. Google 'A*' and you'll find plenty of explanations and implementations of the A* algorithm.
When you have implemented the A* algorithm you can easily use Asphyre (or some other framework/drawing method) to draw the result of your algorithm.

cyberarrow
26-06-2008, 01:15 AM
I'm not sure I understand your question.
Asphyre has nothing to do with pathfinding. Asphyre is a framework that makes game development easier, but there's nothing in there AFAIK that does any game logic.
The algorithm used in your screenshot is the common A* algorithm. Google 'A*' and you'll find plenty of explanations and implementations of the A* algorithm.
When you have implemented the A* algorithm you can easily use Asphyre (or some other framework/drawing method) to draw the result of your algorithm.

yeah... but my problem is how to use this algorithim using asphyre.. i need help to create this... i'm using spriteengine.... and a fixed map.. using grid to control where the player need skip..

see:
http://img244.imageshack.us/img244/4082/pathfindingul8.jpg

you can get my sources here:
http://www.arquivoweb.net/arquivo.php?id=2222124

I hope that somebody can help me...

this looks very hard for me.....

LP
26-06-2008, 02:45 AM
Check Amit's A* Pages (http://theory.stanford.edu/~amitp/GameProgramming/), it explains the algorithm in detail.

I've once wrote a tutorial for A* on Turbo years ago, and I've also made an example program. If there is interest, I can search for the code. And yes, it has nothing to do with Asphyre itself.

cairnswm
26-06-2008, 05:29 AM
On this site there is a A* pathfinding component. Look in the Tutorials Forum for it.

Traveler
26-06-2008, 07:59 AM
The AI forumcategory (sticky) has a pretty good one, ready for use.

cyberarrow
26-06-2008, 01:18 PM
Check Amit's A* Pages (http://theory.stanford.edu/~amitp/GameProgramming/), it explains the algorithm in detail.

I've once wrote a tutorial for A* on Turbo years ago, and I've also made an example program. If there is interest, I can search for the code. And yes, it has nothing to do with Asphyre itself.

please, can you share the example program?

cyberarrow
26-06-2008, 01:37 PM
On this site there is a A* pathfinding component. Look in the Tutorials Forum for it.

component?

i found this:
http://www.pascalgamedevelopment.com/viewtopic.php?t=348

where can i get the component?

cairnswm
26-06-2008, 01:38 PM
The AI forumcategory (sticky) has a pretty good one, ready for use.

Thats the one I meant :) Its based on the one in the tutorial section :)

cyberarrow
26-06-2008, 11:15 PM
i found the component in some thread here on the server of rapidshare, but now i need know how to change the stringgrid to my record list.......

cyberarrow
27-06-2008, 12:40 AM
my code is working now...

http://img516.imageshack.us/img516/6906/95606897rs4.jpg

now i need find one way to put the sprite to follow the sprites...

cyberarrow
27-06-2008, 01:09 AM
my algorithm is working .. see my code:
http://www.arquivoweb.net/arquivo.php?id=1755971

with the canvas the block list is already donne

now i need help just to fix how to follow the sprite list..

can somebody help me with this?

my problem now is just how to use spriteengine...

thanks in advance