sliding movement on collision detection

sliding movement on collision detection

Anonymous

May I know how it works? I believe this is where the movement and collision detection happens - http://d.pr/gnQM

 

I have an idea how it works though - it looks like:

1. your not doing timed-based movement, but rather pixel by pixel.
2. until "speed" or "distance" is met - you will loop through x and y player position and increment it every loop depending on a set of condition. the function finishes with the x and y position incremented for the current frame
 

I'm particularly interseted in the sliding - absolute stop is pretty much straightforward. Also my difficulty problably also lies because on my game i'm doing timed-based movement.

Can you explain how your sliding and movement technically works please?