Thank you for taking the time to explain it thoroughly to me! It made sense even if I will need practice to fully understand it and find other ways to use it. I will try messing with it and remove the useless part too.
Do you think the solution to this issue I have (The player can move to the opposite direction for one frame when wall climbing to a wall - #4 by denkisutando) can be fixed by adding a condition to this code since it deals with the sprite flipping? In any case, I will try… again… later today.