Here is the situation:
Imagine a bunch of players with an x, y and direction running around a map.
The map consists of a texture holding terrain pixels.
For collision detection, I am using the players x and y to check if a specific position contains terrain.
Players can move around and collide with terrain but upon hitting a wall they just sort of freeze

I need a way to make player-wall collision cause them to slide along terrain.
Does anyone know of any way to do this?