dim3 Forum

Full Version: Problem with Acceleration And Decceleration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When my character puts on ski's, i have it so he decelerates slower. but for some reason, he doesnt decelerate when you press the back button, but decelerates the way i want him to when you dont press anything. anyway to fix this?
So does he instantly stop when you press back, and then starts to go backwards? I'm not sure if this is fixable...
Or does just nothing happen when you press back?
Well, he instantly stops, but i want him to not stop instantly, but slow down, than stop.
Code:
obj.setting.slopeGravity=true;
This will cause the player to slide down hills. If you make him really heavy, I think he will slide down faster. This should fix everything as he will slide down, and if you hit backwards he will slow down but not go backwards, and if he turns around he will slide down the wrong way. Only problem is, he won't be able to turn sideways and stop as if on real skis, but I'm sure there's some way to code that in.
Reference URL's