Get player to walk up a slope

Hi, I am new to gdevelop and I am currently creating a platform game and one of the levels has slopes and I would like to know how to make the player walk up the slope and keep these players feet on the ground. When I put a slope in the level it looks like the player is walking on air. How can I make so the angle of the player changes when on a slope and back again when on the straight platform? Any help would be greatfully appreciated

Change the angle of player to angle of slope

As @Muzan wrote. To stop the character from floating on air without changing angle, edit the player object’s collision mask, and use custom collision mask. Chances are that it’s rectangular, and the bottom corners are away from the edges of your player’s pixels.

2 Likes

That’d make an interesting look to a game (interesting as in a good way) :slight_smile:

1 Like