Sign in to follow this  
walkingbush

Shimmying - SDL/C++ Collision Detection

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): [url="http://www.box.net/shared/gdl2okmmaq1xlsh05x1d"]Download @ Box.net[/url]


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this