This a slope detection tutorial. This tutorial shows you how to make an easy slope and point in direction of the slope's direction.
Make two variables: DIRECTION and TILT then make three platforms... press see inside for more information look at the code of all the sprites. Hope you enjoy this tutorial!