I develop games for my own pleasure and also to share experiences with my kids learning coding.
Lately I have been working on a classic retro platform game using XNA and Farseer.
One issue I am having is that my characters sometimes get stuck while walking on tiles. These tiles are blocks put next to each other. It seems that sometimes when reaching the edge of the next tile, character get stuck.
I have read several solutions over the internet:
- Make a weldjoint - did not fix my issue
- Use an edgeshape - haven't found out how to do this yet
- Make one big shape out of my several tiles (the background floor for example) - haven't found out how to do this yet
For now, as a nasty trick, I create circle bodies rather than rectangles. It does reduce the issue but not completely and I feel this is an ugly workaround anyway.
Would any one be so kind as to point me in the right direction or provide me an example? I write in VB.NET but can adapt a C# example if needed.