Jump to content
  • Advertisement
Sign in to follow this  
walkingbush

Shimmying - SDL/C++ Collision Detection

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

Hey there guys, thanks for taking a look. My problem is this: When a collision happens, my character stops moving until you let go of all keys, then you may move away from the wall. I want to be able to move up against the wall and slide if I have one of the perpendicular directional keys held down as well.

The collision function is in funtions.cpp, the player collision handling is in player.cpp. I will be happy to answer any other questions ;)



Once again thank you so much. This forum really is a great help.


Download (5.5 megabytes): Download @ Box.net


Edit 1: If you would perfer some of the code in the post, reply to the post that you do and I will gladly put it in the post. I just want some help with my problem.

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!