# How can I eliminate the gap between tiles in the tile map?

**URL:** <https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241>\
**Category:** Asset Creation\
**Tags:** tile-maps, unreal-engine, UE4, question\
**Created:** [June 28, 2016, 3:05am UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241 "2016-06-28T03:05:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![7lc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@7lc](https://forums.unrealengine.com/u/7lc)\
**Post date:** [June 28, 2016, 3:05am UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/1 "2016-06-28T03:05:05Z")

</div>

Hello,  
I am developing a 2d game in UE 4.12.3.  
I would like to know how can I get rid of the gap between the tiles.  
There are black lines between each block or grid.  
I have tried to fix the camera or scale the map size, but none of them works.

 ![96356-123123123.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/6/9e665562c858a68d011fab782842c47de8714f18.jpeg)

---

<div class="post-metadata">

**Author:** ![Krxtopher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krxtopher](https://forums.unrealengine.com/u/Krxtopher)\
**Post date:** [June 28, 2016, 4:59pm UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/2 "2016-06-28T16:59:32Z")

</div>

7lc, have you tried this?..

1. Open each of those textures in the UE texture editor.
2. In the “Details” panel, reveal the advanced options under the “Texture” section.
3. Change both the “X-axis Tiling Method” and “Y-axis Tiling Method” to “Clamp”

---

<div class="post-metadata">

**Author:** ![7lc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@7lc](https://forums.unrealengine.com/u/7lc)\
**Post date:** [June 29, 2016, 7:53am UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/3 "2016-06-29T07:53:06Z")

</div>

Thank you Krxtopher. Your method works. However, when I move the character, I can still notice the gap between the map, especially when I run the game on the iPhone. The gap is not constantly appearing on the map. It flashes whenever I move the character. When the character stops moving, the gap disappears. Could you tell me how to fix this?

---

<div class="post-metadata">

**Author:** ![7lc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@7lc](https://forums.unrealengine.com/u/7lc)\
**Post date:** [June 29, 2016, 4:09pm UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/4 "2016-06-29T16:09:26Z")

</div>

I fix the problem! It is the problem that caused by the texture. After I created the tile set, I right-clicked the “tile set” and choose “Condition Tile Sheet Texture”.

There is the explanation on the website below.  
[http://saucy.se/blog/curse-of-undeath/unreal-engine-4-tilesets-and-tilemaps/](http://saucy.se/blog/curse-of-undeath/unreal-engine-4-tilesets-and-tilemaps/)

---

<div class="post-metadata">

**Author:** ![FilterGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FilterGame](https://forums.unrealengine.com/u/FilterGame)\
**Post date:** [November 27, 2017, 3:47pm UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/5 "2017-11-27T15:47:40Z")

</div>

Thank you ~~~

---

<div class="post-metadata">

**Author:** ![CtnDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ctndev/32/1133321_2.png) [@CtnDev](https://forums.unrealengine.com/u/CtnDev)\
**Post date:** [June 6, 2019, 9:52am UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/6 "2019-06-06T09:52:20Z")

</div>

This is the nice answer!

---

<div class="post-metadata">

**Author:** ![MTBRGaming](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MTBRGaming](https://forums.unrealengine.com/u/MTBRGaming)\
**Post date:** [June 1, 2021, 4:48am UTC](https://forums.unrealengine.com/t/how-can-i-eliminate-the-gap-between-tiles-in-the-tile-map/362241/7 "2021-06-01T04:48:06Z")

</div>

This saved my life thank you!
