Have a look at the tutorial section of my heavily neglected website. There's two tuts dealing with platform games. I believe they should answer most, if not all, of your questions.