Slope implementation for GameMaker: Studio 2
Very simple. Movement, jumping, slope, all in just 88 lines on Create in objPlayer.
It just used place_free to calculate the player position and direction for the slope.
You can see the value of status in Create on objPlayer.
/// Create in objPlayer
spd = 8; // speed
jmp = 12; // jump power
dir = 32; // max direction(angle)
gra = 1; // gravity
isJump = false; //jump check