I made it smoother. If you want it to be smoother, i advise you look inside and copy the code that I changed. You don't have to give me credit if you do. I deleted the levels and gave some sample levels.
I made a more simpler code than my first platformer, even if it does make a few bugs. It's smoother though.