1 decade ago by aPlouvier
Hi everybody,
I need some help to glue my player to the ground (and slopes).
When he transfers between slopes with different angles there's a moment he's in the air, it's the same when he switches direction on a slope. He ends up in my "falling" state which means he cannot jump (which is a huge gameplay problem ^^) and the sprite changes (which looks like a glitch).
I didn't succeeded by changing gravity, velocity, position and now i just don't know to do....
I'd like something such as Sonic in Sonic 2 when Sonic run he never leaves the ground unless it's a very steep slope.
http://www.youtube.com/watch?v=IMDQtpw-_CY
Thanks for anyone who can help...
I need some help to glue my player to the ground (and slopes).
When he transfers between slopes with different angles there's a moment he's in the air, it's the same when he switches direction on a slope. He ends up in my "falling" state which means he cannot jump (which is a huge gameplay problem ^^) and the sprite changes (which looks like a glitch).
I didn't succeeded by changing gravity, velocity, position and now i just don't know to do....
I'd like something such as Sonic in Sonic 2 when Sonic run he never leaves the ground unless it's a very steep slope.
http://www.youtube.com/watch?v=IMDQtpw-_CY
Thanks for anyone who can help...