Well, I don't know how it works in other engines, but in Unity, you can change to box collider instead of capsule to avoid the sliding down the sides of objects. Also adding a PhysicsMaterial2D. If you wanna force the player to engage in combat, then having sections that bottle neck to where you can't jump over.