- Home /
how do i fix horizontal lines on a 2D tilemap?
so i am new to coding and game development and have been following a you tube series on making a 2D rpg game.
I re-watched many videos and followed all the steps that i could find(that i could understand) and i still have these lines as where they do not show in the tutorial. the lines showed up randomly and i cannot figure out what caused them.
the lines show up after i hit play and stay there permanent (they don't flicker or disappear when i move) and they seem to only be horizontal. in the outside screenshot it shows it acts differently with the different tiles but im not sure why it would but the blue(water) has a collision, the brown(dirt) is a layer on top of the green, but the grey(stone) is the same layer as the green(grass). if any of this information helps.
what i have done/tried: -pixel snap is on -anti aliasing is off -my tileset does have a buffer of 1px -set to orthogonal
If anyone could help that would be much appreciated.
i might add that i used tiled and tiled2unity.
Answer by DuckedAgain · Oct 28, 2021 at 07:35 AM
@aboudreau1 I have no doubt you got an answer for this already but hey, ya never know. Try setting filter mode to point and compression to none on all of the sprites/tilesets that you bring into your project
@aboudreau1 try making the tiles 1(or a part) pixel higher, so they overlap?
Answer by zeehraaa · Oct 29, 2021 at 12:02 PM
I would say, try making the tiles 1(or so) pixel larger in height, so they overlap?