Oct 10, 2011 at 4:58 PM
Edited Oct 10, 2011 at 4:58 PM
Hi again guys. I'm still working on my problem, got a bit further in pointing out the source of the problem. Seems it has nothing to do with sensors after all, but tiles.
I was able to use the XNA Renderer Helper, that is showing the bodies and thanks to that I was able to notice, that everytime player gets stuck it's right on the border of one tile and the next. It seems almost as if the body of the player was not moved
up enough by the physics engine, and the tile next to it is in colision with the bottom of the players body(even if it's 1 px).
I uploaded couple images to show how it looks. I appologies that the images are not bigger, but I have to keep it that way due to legal reasons. It's not important however to visualisation of the problem, as it's perfeclty well visable on these images.
First 3 images you see players body in the top right corner(grey), and the tiles with their bodies(green border). Last picture the situation is reversed to show it's happening from both sides.
Once I get stuck with in a position I can't move past it UNLESS I jump over it. Also, this problem is TOTALY random, which is even more frustrating. Sometimes you can work back and forth, and no problem, and then bam, you got stuck. Then you jump over it,
go back, and we go back to square one, it might stuck but he might walk past it fine.