• Advertisement
Sign in to follow this  

Shimmying - SDL/C++ Collision Detection

This topic is 2439 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
Sign in to follow this  

  • Advertisement