This isn't the easiest way to do something like this, but it is the only way i know how. The graffics aren't that good, but that is ok because you can change the sprites to what you want.
Controls
moves left
moves right
jumps
Thats it!!! If you use this example, please give credit to hpfan273. Thank you for checking out my example.