Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข3y agoโ€ข
10 replies
Erky

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.
603e0180e4267a4ed8dcaeccc687fc48.png
Was this page helpful?