- Home /
How to keep a 2D platformer character grounded when traversing slopes.
I was making a character that controls like one would in a platformer, and is friendly to slopes. I made a variation of the script-based character controller found in the 2D Platformer Character Controller live session and liked how I could use slopes to boost or gimp a jump. However, I found that when my character would walk up a slope (at a 25 degree angle, well within the controller's threshold), they would bounce up the slope instead of smoothly walking up it. Also, the character would play their falling animation indefinitely if they were falling in any capacity before colliding with the slope.
My guess would be that this has something to do with the character having a circular collider at their feet, as that explains an odd bouncing effect that happens when landing on a corner. What I'm looking for is a way to keep the character attached to the ground while walking normally, but any alternative suggestions would be greatly appreciated.
@$$anonymous$$issWonderwing Did you ever find a solution to this?
Your answer