# Lines in the map, how I can remove it?

**URL:** <https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853>\
**Category:** Questions\
**Created:** [March 31, 2019, 2:46pm UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853 "2019-03-31T14:46:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuerreroCraft61](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/guerrerocraft61/32/2246_2.png) [@GuerreroCraft61](https://discourse.mapeditor.org/u/GuerreroCraft61)\
**Post date:** [March 31, 2019, 2:46pm UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853/1 "2019-03-31T14:46:31Z")

</div>

I have the antialiasing off, but the lines are still there  
In the video I use 16x16 tileset and 15x15 Map Tile size

 ![](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/d/dbaea7a5ebe87940fa305b9f68d10438f15c0f70.png)

In the image I use 16x16 tileset and 16x16 Map Tile size

[Tileset link](https://i.gyazo.com/d38acfe461888720759655f49cc1c6bf.png) (16x16 Margin 0 Spacing 0)  
The map was created using different layers.

---

<div class="post-metadata">

**Author:** ![the-simian](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/the-simian/32/1800_2.png) [@the-simian](https://discourse.mapeditor.org/u/the-simian)\
**Post date:** [April 1, 2019, 8:10pm UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853/2 "2019-04-01T20:10:17Z")

</div>

Hey are you using the output on the web? believe it or not this isn’t the result of Tiled, but rather whatever is rendering the JSON.

I talk about this in my talk here: [https://www.youtube.com/watch?v=lDNmu\_9J2p8](https://www.youtube.com/watch?v=lDNmu_9J2p8)

Check out tip #2 and see if that helps!

---

<div class="post-metadata">

**Author:** ![GuerreroCraft61](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/guerrerocraft61/32/2246_2.png) [@GuerreroCraft61](https://discourse.mapeditor.org/u/GuerreroCraft61)\
**Post date:** [April 1, 2019, 8:44pm UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853/3 "2019-04-01T20:44:38Z")

</div>

I’m sorry, but I do not “know” what is the “rendering the JSON” (I’m noob create videogames and I don’t speak I very good English). The screen I record is the Unity preview screen (the camera) if you mean that with the output on the web

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [April 2, 2019, 10:12am UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853/4 "2019-04-02T10:12:57Z")

</div>

> [@GuerreroCraft61](#):
>
> The screen I record is the Unity preview screen (the camera) if you mean that with the output on the web

It’s always good to state which technologies you’re using, otherwise it’s guesswork for those who are trying to help you. Since you mentioned Unity now, I’m assuming you may be using Tiled2Unity or SuperTiled2Unity. In that case, the problem you’re having may be covered on the following page:

[https://tiled2unity.readthedocs.io/en/latest/fixing-seams/](https://tiled2unity.readthedocs.io/en/latest/fixing-seams/)

Extruding/padding your tiles is also mentioned there like @the-simian did in his talk, and if you want to use non-integer scaling factors and place your map at sub-pixel positions, this would be the way to avoid those lines.

However if you just do that the pixels will keep this slight “jittering”, so the preferred way to avoid it in my opinion is to use an integer zoom factor and round the map’s position such that it’s always aligned to physical pixels.

---

<div class="post-metadata">

**Author:** ![the-simian](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/the-simian/32/1800_2.png) [@the-simian](https://discourse.mapeditor.org/u/the-simian)\
**Post date:** [April 2, 2019, 2:05pm UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853/5 "2019-04-02T14:05:28Z")

</div>

Bjorn just said most of what I would have followed up with. Just to clarify what I meant by ‘rendering the JSON’. Tiled as an editor is agnostic as to what consumes its output. You can make a map in Tiled and load it into many things, and the output is often times JSON. In your case, Unity is the engine that is consuming Tiled’s output and managing rendering. In my talk I linked, it’s a web framework called Phaser.

As Bjorn mentioned, the tile padding (or tile extruding) as a concept can apply to anything, not just Phaser as is in my talk. Judging from the way the lines (artifacts) look, my bet is that is still what is causing your issue.

---

<div class="post-metadata">

**Author:** ![GuerreroCraft61](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/guerrerocraft61/32/2246_2.png) [@GuerreroCraft61](https://discourse.mapeditor.org/u/GuerreroCraft61)\
**Post date:** [April 2, 2019, 3:43pm UTC](https://discourse.mapeditor.org/t/lines-in-the-map-how-i-can-remove-it/3853/6 "2019-04-02T15:43:23Z")

</div>

Solved using SuperTiled2Unity
