Jump to content
  • Advertisement
Sign in to follow this  
julescoder

Platformer Ai ?

This topic is 3069 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, A* and several other pathfinder algorithms are based on 4 way connected world(L,R,U,D) . They can be implemented in top down type 2d games. But i wanted to know how can the same be implemented in a platformer type game. Even though there are 4 directions, actually the ai agent will move only left and right. How is the jump or drop down action to be considered in the alogorithms. ? Or is there a seperate technique for platformer ai ? [Edited by - julescoder on February 22, 2010 1:16:34 PM]

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by julescoder
A* and several other pathfinder algorithms are based on 4 way connected world(L,R,U,D).
This seems to be a common misconception, but it is incorrect: A* (and related algorithms) search for the shortest path between two nodes in a graph (in the mathematical sense of 'graph').

A 2-dimensional grid can be treated as a graph with each node connected to its 4 neighbours, and thus A* is often used for this type of path-finding problem, but it is by no means restricted to grids.

Share this post


Link to post
Share on other sites
The only actual structures needed for A* are nodes and edges. Theoretically, you could use A* on a line, box, or circle of nodes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!