Jump to content
  • Advertisement
Sign in to follow this  
NightCabbage

2D Side-View Pathfinding

This topic is 3942 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
×

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!