Jump to content
  • Advertisement
Sign in to follow this  
johnson56k

2d sidescroller logic

This topic is 3804 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!