- Home /
Isometric Tilemap Characters Z-Fighting Causing Flickering
I have an isometric tilemap with many characters walking around on the map. The characters are constrained to integer positions, so I often end up with z-fighting (fast flickering) when two characters are at the same position.
This would normally be fixed by assigning the characters each a different order within the layer, but that is not possible because I think they must remain at the same order within layer as the tilemap walls. Otherwise, they will not be able to walk behind the walls. Giving each character a slightly different z-value does not appear to work.
Answer by mbchapman · Dec 06, 2021 at 02:38 AM
I have solved this problem by setting a small bias towards the z-value for the Transparency Sort Axis
, then I assigned a unique z-value to the position of each character.
This ensures that the z-values of the characters are taken into account when sorting them. I had to use a fairly small z-value for the Transparency Sort Axis
.
A value of (0, 1, 0.1)
is working well.
Your answer
![](https://koobas.hobune.stream/wayback/20220613050157im_/https://answers.unity.com/themes/thub/images/avi.jpg)