This is just a fun project. Tutorial from griffpatch. This technique is very useful in a lot of platformers.