2191
Ask a Question / Dealing with slopes!
« on: May 15, 2012, 06:18:14 am »
I have been tinkering around with different codes and messing with pre-shipped behaviors to try and get what I am looking for, but it seems a bit trickier than it seems. So:
1. What is the best way to have a player transition from running up a slope to running on flat ground without having them jump up at the end of the incline (i.e. as if they were riding off a ramp)?
2. If I set friction to 0 for my player, this prevents sticking to a wall, but likewise, he has a tendency to then slide on slopes when not moving. If I turn the friction up even a little, he starts sticking to the wall. What is an appropriate remedy to this?
Suggestions?
1. What is the best way to have a player transition from running up a slope to running on flat ground without having them jump up at the end of the incline (i.e. as if they were riding off a ramp)?
2. If I set friction to 0 for my player, this prevents sticking to a wall, but likewise, he has a tendency to then slide on slopes when not moving. If I turn the friction up even a little, he starts sticking to the wall. What is an appropriate remedy to this?
Suggestions?