mapeditor / mapeditor/tiled

Incorrect Width and Height when a Tile Collision shape is added in the Tile Collision Editor.

Open
#2,028 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Using tiled 1.2.0

I think it's a minor bug, but it's very confusing.

When you add a collision shape in the Tile Collision Editor the width and height are incorrect.

The main problem is that you see for example a big Rectangle (But the Object attributes Width and Height are not representing that big Rectangle). This inconsistency continues if you save the Tileset. In the .tsx the Rectangle width and height are 0.

👍

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

Reproduce the issue in the Tile Collision Editor using Tiled 1.2.0, then inspect the collision shape's displayed attributes and the saved .tsx output. Done means the rectangle's visual size, Width and Height attributes, and serialized dimensions agree after saving.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.