Sign in to follow this  
julescoder

Platformer Ai ?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this