totebo
April 10, 2026, 6:25pm
1
Hello grid snap lovers!
Grid snapping is essential to be able to effectively use Defold as a level editor outside of tilemaps. There are a few related posts on Github and the forum, but seemingly no actual plan of implementation.
The feature would basically be to add a “snap to grid” checkbox to the recently added grid settings. When enabled, any object dragged in the editor would snap to the grid.
Before I add a feature request on Github, can I confirm this feature is not planned?
– 8< –
Github:
opened 05:34AM - 27 May 19 UTC
bug
editor
scene editor
Expected behaviour
* Change the grid size & color
* Snap to the grids
Actua… l behaviour
* Changing the grid size and color from Preferences doesn't work on editor scene
* Snapping is not working with holding "Shift" key
Steps to reproduce
* Open Preferences, change the grid size and color
* Snap with Shift key on editor.
Source: https://github.com/defold/editor2-issues/issues/1477
dev ← ufgo:dev
opened 07:31PM - 08 Nov 25 UTC
This pull request introduces a new "Move Step" tab in the Editor preferences.
…
Users can now configure two separate movement step values:
* Regular move step – used for standard object movement.
* Shift move step – used when holding the Shift key to move objects with a different step size.
This feature improves precision and flexibility when positioning objects in the scene.
https://github.com/user-attachments/assets/1a2c0215-1098-4ed4-8eb4-7f718f62ecd3
opened 06:47PM - 12 Dec 17 UTC
embarrassing
### Expected behaviour
- Change the grid size & color
- Snap to the grids
#… ## Actual behaviour
- Changing the grid size and color from Preferences doesn't work on editor scene
- Snapping is not working with holding "Shift" key
### Steps to reproduce
- Open Preferences, change the grid size and color
- Snap with Shift key on editor.
<hr/>
<table>
<tr><td>Build time</td><td>2017-12-08T15:49:56.627920</td></tr>
<tr><td>Defold channel</td><td>editor-alpha</td></tr>
<tr><td>Defold editor sha</td><td>31f928f49adad823a31c99a69fcf14de6de50f67</td></tr>
<tr><td>Defold engine sha</td><td>4ac025d15c25a9e0dbf14140d2e5d443c2edfdc4</td></tr>
<tr><td>Defold version</td><td>1.2.117</td></tr>
<tr><td>GPU</td><td>Intel HD Graphics 4000 OpenGL Engine</td></tr>
<tr><td>GPU Driver</td><td>2.1 INTEL-10.30.12</td></tr>
<tr><td>Java version</td><td>1.8.0_102-b14</td></tr>
<tr><td>OS arch</td><td>x86_64</td></tr>
<tr><td>OS name</td><td>Mac OS X</td></tr>
<tr><td>OS version</td><td>10.13.2</td></tr>
<table>
Related posts:
Welcome to Defold! Defold is indeed more bare bones than Unity and Godot. This is mostly by design to get a lean and performant engine.
When it comes to the editor and scene editing we are about to release (in Defold 1.10.4 in less than a month) a configurable scene grid:
https://github.com/defold/defold/pull/10345
One of the next steps is to add snapping of scene elements. I can’t say exactly when this will arrive but I expect some improvements to come during Q3.
Hi folks. As far as I’ve know there is currently no way in the Editor to snap objects to a grid. Tilemaps might work as an alternative in some cases, but not always. I’ve done some googling and apparently it is a feature that has been requested a few times, so I thought I could share my own workaround. Please bear in mind that I’m still new to Defold, so this is a really simplistic fix. Its good enough for me, but it might not work in some special cases and there are probably better ways to do …
I’m using tiles locked to a grid. Is there a way in the collection editor to have all the sprites lock to a defined grid spacing (or a way to place them close enough and then run some kind of snapping to grid function)?
Hello,
Is there a way to snap objects to grid when moving them around in the editor? If yes, is there a way to change the grid size or the snapping behavior?
If no, what’s the best way to align objects when placing/moving them?
Thanks
Few days ago some user has left a message that really confused me
I do understand that we all have different needs, but calling such a feature (that would be used only by 0.01% of users) the last missing feature, is it a joke?
Firstly, let me praise the engine and the editor.
I started poking with the defold around a month ago. I have read/watched a few tutorials, read some parts of the manual, and made a few simple games (tetris clone and 1-level platformer). I pretty much liked the experie…
9 Likes
I would love to have this checkbox! And it’s great that it is accessible in the grid settings and not hidden somewhere in the preferences. If I may suggest something, it would be good to have a keyboard shortcut that temporarily enables/disables snapping to the grid during movement (like holding Alt in some software), and another one to toggle it on and off (like Caps Lock).
It would also fix some inconsistencies. For example, in Defold 1.12.2, when I move a collision shape (via pivot arrow) in a game object, it snaps to the grid (and I honestly don’t know how to disable this ;D). However, when the same GO is placed inside a collection and I move (also via arrow) the collision shape, it does not snap to the grid. The functionality you suggested should fix this inconsistency.
3 Likes