Snap object to grid

Show how to have objects snapped to grids (from simple rectangular grids to more complex ones like a hexagonal grid).

Snap object to grid

How it's built?

This game is made with GDevelop using these features:

  • Event functions
  • External layouts
  • Mathematical tools
  • Mouse and touch
  • Objects
  • Scene
  • Variables
  • Game window and resolution
  • Draggable Behavior
  • Shape painter
  • Sprite
  • Text object
  • Snap objects to a virtual grid
  • Hexagonal grid

Edit it in GDevelop

Try Snap object to grid online

Test and edit this example in the GDevelop game engine.