Best way to do collision so the player can still move if collided?

Let's say the player moves to the right and hits a wall. I know how to check for collision, but how should I make it so the player can't actually collide with the wall? When i try, the player hits the wall, and then i can't move at all. Should I check each side of the sprite for collision?
Topic archived. No new replies allowed.