Player catching the floor of the tilemap. How to resolve?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By spicy
:warning: Old Version Published before Godot 3 was released.

Okay, so this is a problem I’ve had in my game for a while.

Whenever my player moves (either left or right) he usually gets caught on a block and is unable to move, the only way to free the player is to jump. But this is a quick in game fix and not a real solution.

My only guess is that where the blocks end and meet for my tilemap, the player gets caught in there somewhere? Does anyone have any idea how to resolve this?

Edit: I thought it might be a good idea to mention that I did the collisions for the blocks in the tilemap xml file, incase that makes any difference?

:bust_in_silhouette: Reply From: The_Duskitty

I ran into this problem as well, i resolved to just Removing all collisions on the tiles so you jsut had the images, then put the tileset in a Staticbody2D and make large collision boxes covering the areas of the tilemaps where you want collisions, i dont know if it’s the most optimal but it removes the getting stuck thing

i fix the same problem changing the collision shape of the player to sphere or capsule, having a box always get stuck. this way dont need to change the collision of the tiles.

tiernich | 2016-03-27 03:12

Thanks for your answer! Your solution was what I was going to resort to if I couldn’t find a fix. Well I didn’t, so I did what you did. And it seems to be working fine now! Thanks again :slight_smile:

spicy | 2016-03-27 14:17