Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by suffrage

Hey everyone,

I've been working on just putting together the initial elements for a game and I'm having trouble with dealing with slopes and my player entity. So my goal is this: if the player walks onto a slope within the slopeStanding range, walking up will be slowed, if the player stops on the slope they will not move (no sliding), and going downhill would increase the movement speed. I was just wondering if people had any examples of this. I've tried piecing things together that I've seen on the forums but nothing seems to really work. Mostly the difficulty is with the standing part: I'm not sure if it's best to increase the friction, set the velocity, set the position to the last position, etc. Then there are issues with dealing with jumping onto a surface, but I think just having a place to start would be incredibly helpful. Thanks for any help you can give

1 decade ago by quidmonkey

You can try this.

1 decade ago by suffrage

AHHHH, sweet, and it's so simple! Thanks very much, that works exactly as I hoped.
Page 1 of 1
« first « previous next › last »