Problem with slope angles

Hey! So i tried doing that, but it doesn’t really solve my problem! I can tell if the floor is at an angle but not if the character is moving downwards or upwards, just like before!