Sorry for bumping this REALLY (I think) old thread,I can give you a base you can build off of.
On Yoyo game's website,go to games>sandbox,then the giant MAKE button on top.
Click on tutorials (On the left) And scroll down to Platformer game.
or simply:http://sandbox.yoyogames.com/downloads/tutorials/platform.zip