Closed spsquared closed 3 years ago
The "px" and "py" variables are not updated after collisions so the code still does not know that the previous check has moved the player and still thinks it is inside a block.
And placing the "center" collision check at the top will help to reduce these glitches
Describe the bug Upon fallign really fast and moving, hitting a flat surface will place you shifted to fit inside a tile. If you look at It in slow motion, you can see that you fall into a block, and then on the next tick you end up on top but in the wrong place
To Reproduce Steps to reproduce the behavior:
Expected behavior Should check for a collision in the other block
Screenshots
Environment
Additional context Add any other context about the problem here.