# Snap to integer values

**URL:** <https://discourse.mapeditor.org/t/snap-to-integer-values/57>\
**Category:** Suggestions\
**Created:** [November 17, 2014, 12:05pm UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57 "2014-11-17T12:05:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![astorga](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/astorga/32/27_2.png) [@astorga](https://discourse.mapeditor.org/u/astorga)\
**Post date:** [November 17, 2014, 12:05pm UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/1 "2014-11-17T12:05:04Z")

</div>

Just like snap to grid, would be great (especially for collision editor) to have a integer (pixel) snap. If there’s already a way to do it, please tell me since I miss this feature.

---

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [November 17, 2014, 12:54pm UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/2 "2014-11-17T12:54:04Z")

</div>

I think a nice solution would maybe be to rename the “fine grid” to a “custom grid” and allow to freely set the grid size on it?

Regards,  
Ablu

---

<div class="post-metadata">

**Author:** ![astorga](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/astorga/32/27_2.png) [@astorga](https://discourse.mapeditor.org/u/astorga)\
**Post date:** [November 17, 2014, 12:55pm UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/3 "2014-11-17T12:55:29Z")

</div>

That option would be great. BTW, what is fine grid snap?

---

<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:** [November 17, 2014, 12:56pm UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/4 "2014-11-17T12:56:12Z")

</div>

I think it’s a good suggestion and I’ve already heard from other people who wanted to align the positions to pixels as well. It was somewhat to be expected since the floating point values are new since Tiled 0.10. Previously the values were always rounded to pixels.

For now, you can actually use the “Snap to Fine Grid” option for this, as long as you are using square grid cells. Just set the fine grid division count (in the Preferences) equal to the pixel dimensions of your grid cells.

@Ablu Making the grid more freely customizable would of course solve the problem as well. Though I was thinking some people would simply want to apply pixel aligning more explicitly and independently of their custom grid.

---

<div class="post-metadata">

**Author:** ![webshaker](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@webshaker](https://discourse.mapeditor.org/u/webshaker)\
**Post date:** [October 16, 2021, 8:23am UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/5 "2021-10-16T08:23:16Z")

</div>

Up…

still a good suggestion to implement !

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [October 16, 2021, 11:33am UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/6 "2021-10-16T11:33:48Z")

</div>

Snap to Pixels has been a feature since 2016. Please check the program for a feature before resurrecting ancient threads xP

---

<div class="post-metadata">

**Author:** ![webshaker](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@webshaker](https://discourse.mapeditor.org/u/webshaker)\
**Post date:** [October 16, 2021, 12:56pm UTC](https://discourse.mapeditor.org/t/snap-to-integer-values/57/7 "2021-10-16T12:56:41Z")

</div>

Oups.

Sorry 😬
