This is the first in my series of platformer examples. If you are just starting from scratch take a look inside^ and take a look at my comments. All of the code is in one sprite and is easy to follow. Enjoy!