1
General / Re: Handling tile-based slopes
« on: August 26, 2023, 07:49:16 am »
I have used the algorithm mentioned in the above post, however, when exiting the left slope - moving up, sometimes (not always) my player is being positioned a tile (in length) higher. I have tried to debug it, but nothing seems to work. Any help would be appreciated. Also, there are any edge cases in this algorithm as mentioned by the jnrdev, do we have a complete working project from where I can reference the algorithm. Thanks in advance