I'm writing a platformer lode-runner-like game. I would like to ask experienced people to see what's wrong. Everything seems to be ok but I am absolutely confused about 3 bugs.
Why is the player jumping on top of the ladder?
I tried to put the physics of the player's sprite body to -gameSettings.gravity.v to prevent a slow slide down the stairs but after that when the player rises to the top he cannot get off the ladder.
When you collect all the boxes, a ladder appears on the uppermost platform. It is no different from other ladder, but sometimes I can climb on it and sometimes I can't.
I know that I ask too many questions, but I am sure they are all related to physics error I made somewhere in my code.
https://platformergametest.000webhostapp.com/ here I uploaded my game on free hosting