The Y_speed instance variable is constantly storing the player's vertical speed at each tick, and just when the player tries to stop to land on a jump-thru platform, an action forces him to continue falling at the last speed stored in the Y_speed instance variable.