i'm trying to do a pixel perfect collision but i don't know how to handle collisions when there is a jump . Here i have one image of a sample map:
But maybe I've done a bad supposing all pixel like little collision points . I mean , there is no differences between y-axis collision and x-axis collision in my collision map.
I have been treating each axis collision split , but that is bad done when diagonal jump have been made , cause you'll made an error in x or in y while correcting the position.
Then I thought that maybe I was wrong in my supposition that I didn't need to split for pixel collision type.
I will resume it in 2 questions:
- how can I handle pixel perfect collisions for a platformer?
- if I'm doing it well , How to manage the x-axis, y-axis problem?
P.S: My collision 'player' is a box way