Sign in to follow this  

Shimmying - SDL/C++ Collision Detection

This topic is 2345 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): [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

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

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