Hey guys.
I currently have gravity/jumping working in my game etc but I have a few issues. My collision detection usually works by first moving the bounding box of the player, checking for the collision and if it collides then it doesn’t allow the player to move. This has served me pretty well in the past but right now I have these issues.
My currently implementation is pretty bad as the player sometimes gets stuck in the ground when falling. Sometimes the collision detection will make him float above the blocks by a certain amount. Due to this it then become very difficult to implement a jumping collision box.
I was just wondering if anyone has an ideas about how to fix this. As I said, the collision detection usually works find but this is my first platformer style game so I might need to use a different type of system
EDIT: Okay so i’ve found this YouTube tutorial which looks pretty good https://www.youtube.com/watch?v=Zmkuk9OlObw Sadly i’m about to run off to study for my exam this afternoon but i’ll take a look later!