#49342 - KonVex - Thu Jul 28, 2005 11:50 pm
I was thinking about doing a plattformer prototype, but there is one concept I still need to grasp before I tackle this project.
I'm familiar with basic collision-detection, yet I'm not sure how the interaction of the player-sprite with the environment could be done in an elegant manner. Basically these cases have to be considered:
The first three cases are easy, but the slopes could get really tricky.
How are slopes usually implemented in plattformers?
I'm familiar with basic collision-detection, yet I'm not sure how the interaction of the player-sprite with the environment could be done in an elegant manner. Basically these cases have to be considered:
- -Player is walking on a plane
-Player is walking against a wall
-Player is falling down if there is no ground beneath
-Player is walking up a slope
-Player is walking down a slope
(jumping is omitted for now)
The first three cases are easy, but the slopes could get really tricky.
How are slopes usually implemented in plattformers?