REQ:Path lookup tables

504d0b7c411a544d662af430bf1a8a9a
0
Devoto 101 Sep 11, 2006 at 21:06

Dear all,

I am looking for a good tutorial about pathfinding. What I have read so far is, Path lookup tables are faster than other techniques. The algorithm I want to design is to be used in flash game.

I will appreciate your help.

Thanks

Devoto

4 Replies

Please log in or register to post a reply.

065f0635a4c94d685583c20132a4559d
0
Ed_Mack 101 Sep 12, 2006 at 08:07

A* is very good, and has been efficiently programed in actionscript - so you may not need to bother making lookup tables. Google pathfinding for good tutorials.

504d0b7c411a544d662af430bf1a8a9a
0
Devoto 101 Sep 12, 2006 at 16:30

Thanks Ed. I already checked some A* tutorials but practically in each forum a read about the topic, people said that when you have a big map A* becomes slow and here is where pre-computed method is better.

I will continue my quest
Thanks

6cad28055d4af37574fe0d4064555e53
0
GroundKeeper 101 Sep 19, 2006 at 21:18

A* is can be made VERY fast and there is no restriction that you can’t use precomputated data in your implementation of A*. The most basic A* would look at the complete instance of the world but in most cases you can use an A* network and futher enhance it with a layered network. A* is more of a heuristic (and I’m using this term in a loose maner) or guidence to a preference of choice when making a choice of direction. To make a possibly long story short: Google A* and try it!

6837d514b487de395be51432d9cdd078
0
TheNut 179 Sep 28, 2006 at 00:19

A complete path lookup table would require quite a bit of memory, and it’s limited to maps that are statically defined (so paths cannot be blocked at all).

A* has excellent runtime performance and even supports step-by-step computing, so you can calculate the path synchronously with your frame rate for maximum performance. In addition, the weighted system can be dynamically defined, so you can add modifiers to your maps, such as blocked off sections, heavily saturated areas, and so on to modify the paths of other objects to avoid such things. And just as GroundKeeper said, you can still use the A* to precalculate paths if that’s what you want in the end.