credit to 220720080 for most of the code i just put everything in 1 sprite ( i removed the backdrop) and changed some code to make the up and downs smoother
...