• Advertisement
Sign in to follow this  

2D Side-View Pathfinding

This topic is 3735 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

Hello all Just wodnering if there are any existing methods of doing AI for a 2D side-view game (where there's terrain, and gravity, etc.) So there might be some terrain... flat ground, with a mountain and a canyon. The AI needs to know it can run around on the ground, climb up the mountain, and jump across the canyon, etc. Cheers

Share this post


Link to post
Share on other sites
Advertisement
A* would still work, except now it's your G values and children nodes that have to be accurately computed. Each node should know its parent node so you'd have to calculate how far it has moved in, say, a jump, making the G value of moving from in a pit to on the floor above it being the maximum integer (since that would be impossible), or not even appear on the children node list.

Share this post


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

  • Advertisement