Different anchors for Stamps
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
Multi-tile Stamps are currently always placed centered on the cursor. This can be a problem when trying to place stamps with variants of differing sizes precisely. For example, if I want to draw a line of trees, the shorter trees will be placed higher than the taller trees.
For stamps like this, it would be very helpful to be able to set an anchor point, so that I could choose e.g. bottom center for trees.
Since this is only relevant when using saved stamps with variants, perhaps anchors could be saved per stamp/variant, using a dropdown like Tilesets' Object Alignment, or a graphical selector:

At a minimum, I think the options should be Center, since that's the usual behaviour, and Bottom, as that's very common in both sidescrollers and top-down games, useful for any stamps that are attached to the ground. Other anchors are useful less often, but should still be offered if it's not too difficult. Saving this value on a per-stamp basis means that the user won't have to change any tool properties when they switch swamps, and won't have to think about alignment at all when it doesn't matter.
The default value for stamps should be Center to match with the current behaviour, and newly added variants should default to the value used to the previous stamp/variant within that stamp.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how saved stamps and their variants are placed and persisted, using Tilesets' Object Alignment as the existing UI reference. Done means users can choose an anchor per stamp or variant, Center remains the default, and newly added variants inherit the previous value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, game-dev, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100