mapeditor / mapeditor/tiled

Snapping objects between the fine grid divisions

Open
#3,283 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

### Problem

I'm trying to support two workflows. 1) Convenient editing and placement of objects by snapping them to two divisions of the tile size and 2) More precise editing and placement of colliders (polygons) that sometimes require four divisions of the tile.

I find myself having to swap back/forth between two and four divisions often. I've noticed holding `ctrl+shift` when dragging snaps to tiles themselves and holding `ctrl` disables snap altogether but there is no way to snap between the fine grid divisions.

### Goal

Add a modifier that allows snapping to double the precision of the fine grid divisions so that users don't have to edit their preferences so often when switching between editing tasks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing handling for Ctrl and Ctrl+Shift during object dragging, along with the current fine-grid snapping logic. The change is done when a modifier enables snapping at double the fine-grid precision without requiring preference changes, while existing tile snapping and snap disabling still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
design, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.