Sorry for the long post, but it's a bit difficult to explain this issue, so here it goes:
Few weeks ago I started another job for a tiled 2d platform game, so I decided to use a physics engine this time, I initially used Spacemanager + Chipmubk, great, very easy to use, but I soon got stuck with the collision, sometimes my objects were getting inside other objects, I couldn't find a solution so with time constrains I decided to move over Box2D.
I managed to do something pretty decent in no time, and collision was working exactly as I expected on this game (needed exact collision detection). But the first problem I had was, since the map is tiled, having two tile boxes aligned horizontally was not a good idea, Box2D sometimes makes your player walking on top, to stop between the tiles, as if one of the boxes were slightly up compared with the other. Seems common issue in Box2D. I fixed this going through rows and create a single rectangular body for a row of consecutive tiles. Works like a charm.
BUT, I still have the issue vertically, so if I jump agains a wall of tiles, sometimes, I can stop on one of the tiles. I did manage to mitigate this using the x coordinate of the player agains the tile. But is not perfect and wondering what else I can do. Doing the same I did for the horizontal tiles vertically would be pretty complex, not sure I can really do that actually, I guess I have to choose horizontal or vertical! I thought of create polygon shapes to contain all block of tiles, but damn, this must be pretty complex! And time is critical now :(
Then, next issue bugging me is, and this is more seriously, if I have a row of horizontal tiles, all enclosed in one single rectangular body, all works fine, but, if I then have a moving platform at the end of the row, then I have the same issue, sometimes, I can't just calk into the platform cos I get collision, so I need to jump. Note this issues happen only sometimes, most times works, but still, pretty annoying.
Anyway, wondering if someone had/is having similar issues and what are your approaches, I am pulling my hair out (the few I have left) and I am even considering forgetting physics engine and do the traditional tiled collision, so reading the adjacent tiles, which I did on the past. But I'm pretty behind now so I'm a bit afraid of loosing more time :(