Tilemap Problems

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Criepstar

Problem 1:
If I go to the right at tiles with collision, the player just stops like there would be a border,:
Here’s the video
For the tile its first a sprite, than a staticbody and than a collision polygon

Problem 2:
If I move around its like Tiles would move/ get invisible: the video

:bust_in_silhouette: Reply From: estebanmolca

Do you use an nvidia graphics card? Problem 2 is a known issue that has an entry on github. I think it only happens with some nvidia graphics. Go to:
Project> Project Settings …> General> Rendering> Quality
and check the box:
Use Nvidia Rect Flicker Workaround
and see if problem 2 is solved.

For problem one, I think it is because the collisions are not well adjusted. What you can do is, in the tile editor, in Collision mode, check the Enable Snap and Show Grid button … In the inspector a category called Snap Options will appear, there you can adjust the snap grid to a value small, eg: 4 x 4, and adjust all the collisions on the tiles.

https://github.com/godotengine/godot/issues/9913

estebanmolca | 2020-06-03 12:26

Thank you for your answer, it helped and solved both problems

Criepstar | 2020-06-03 21:56