Collision with slopes in a game
can someone help me describe how sloped tiled collision should work for my game? say i have a sloped tile on the tile value 40, how do i handle a sloped tile, like how do i set the hitbox x, the hitbox y, how do i avoid others methods clashing, how do i update the height of the player? i only have two slopes which are both 45 degrees diagonally and cover the entire tile.

5 Replies
⌛
This post has been reserved for your question.
Hey @Erky! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
this is my current collision handling:
I mean, dude, that sort of things is why there are game engines out there, with features such as handling slopes.
While I imagine the problem of slopes has gotten fairly standardized, the entire concept is that you design the physics of it, not that others do it for you. Treat it like any things that you put in your game and isn't in all games.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.