PDA

View Full Version : Pathfinding



cthulhu
July 7th, 2004, 07:13 PM
Can anyone here point me in the right direction for having a character walk around an object?

Attached is my best attempt after numerous tries.

I'm basically using hitTest on a bunch of little nodes that define my area the object should move around.

Each node tells the object to move a certain ammount until the object is clear of the nodes, and the object goes where I originally clicked. Problem is, my method sucks and the object gets stuck most of the time.

I'm trying for the functionality of a point-and-click graphic adventure game.

Thanks.

tucker
July 7th, 2004, 07:25 PM
http://www.tonypa.pri.ee/tbw/index.html its somewhere on the menu there ; D

cthulhu
July 7th, 2004, 07:39 PM
Hmmm. Tile-based, but interesting all the same. I might have to re-think my methods. Lots of other goodies on that site, too. Thanks for the link.

TheOneAndOnly
July 7th, 2004, 07:53 PM
there is a book called flash MX game design demystified that talks about the A* algothrim thats used for pathfinding, u might wanna check that book out

cthulhu
July 7th, 2004, 08:07 PM
Yeah, I saw that book on Amazon. I'll have to go check it out at a bookstore. Thanks.

Now if they only had "Building a Lucasarts-Style Graphic Adventure: For Dummies", I'd be set. :)