This project has moved and is read-only. For the latest updates, please go here.

Character bouncing while moving on tile based ground

Jun 25, 2011 at 2:50 AM
Edited Jun 25, 2011 at 2:50 AM

As you can see, the character is bouncing or getting stuck, when moving on a 16x16 tile based ground. Is there any way to prevent this?

Jun 25, 2011 at 11:16 AM
Edited Jun 25, 2011 at 5:56 PM

a known problem. to fix it you need to loop trought your map and make a path instead of x*y squares (*searching link*)

like edge detection made with shaders

found something usefull

another link:

Jun 25, 2011 at 9:05 PM
Edited Jun 25, 2011 at 10:18 PM

I've been trying what those links said for the last 12 hours, but I still can't get it to work.

After about 325643 different approaches, the best thing I get is still the correct polygon with the wrong order of vertices.

I even tried painting a collision map and using the texture to polygon methods, but this won't work with multiple areas. I couldn't find a way to split them.


Edit: Finally managed to do it. I just had to create a seperate texture2d (uint) collision map for every layer (outside, walking area, inside walls) to make it work. I was always trying to get the walls inside into the same texture as the walls outside, whcih didn't work.


Thanks for the help, HellGate.