Jump to content
  • Advertisement
Sign in to follow this  
johnson56k

2d sidescroller logic

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

ok i can detect when aabb's (the actor) and other aabb's and triangles (the map) collide and what angle they are colliding. The problem is i dont know how to make the actor follow the ground. Right now i have a variable that i set called "onground" and make the gravity zero if he is on the ground so he doesnt stick to it in one place. This works for the AABB map objects but when I get to the triangles the character bounces down it and doesnt go up it. How do games such as mario bros implement the sloped floors?

Share this post


Link to post
Share on other sites
Advertisement
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!