Results 1 to 2 of 2

Thread: RTS Pathfinding like AOE

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    I need to know how to pathfind just like AOE does. See I can't really use that A thing or whatever that other dude was talkin about cuz I mean it doesn't work well if your telling the guy to go through a complicated maze of obstacles and such. For example:

    Code:
    * is unit
    X is destination
    Lines are walls or whatever
    
                        |     |
        *               |     |
                        |     |
                        |     |                X
                        |     |
                        |     |
         ---------------/     |
                              |
                              |
                   -----------/   
    
    a path with that "A" mode would be:
    
                        |     |
        *--------------\|     |
       /\/\/\/\/\/\/\/\||     |
       ||||||||||||||||||     |       ---------X
       ||||||||||||||||||   /\|      /
       \\/\/\/\/\/\/\/\/|   |/|     /
        \---------------/ /-/ |    /
         ----------------/  | |   /
                  /---------/ |  /
                  |-----------/ /           
                  \------------/
    
    a path by AOE would be:
    
                        |     |
        *               |     |
        |               |     |
        |               |     |       ---------X
        |               |     |      /
        |               |     |     /
        \---------------/     |    /
         \                    |   /
          \                   |  /
           \       -----------/ /
            -------------------/
    See how AOE would find the perfect path instantly? I want to know how to do that cuz I need that for my game.

    [Edited by Vuen on 10-09-2000 at 09:08 PM]
    Vuen

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    go to my thread Pathfinding, posted in the last few days.

    PaulLewis gave an VERY good eplanation of A* it is extremely fast and still finds the way like you want it!
    Sanity is a full time job

    Puh das war harter Stoff!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width