Tinting, Alignment and Object References
This development snapshot adds many new features and includes all the bugfixes in Tiled 1.3.2. Most of the new features were not on the roadmap for Tiled 1.4, but were instead prompted by pull requests.
Tinting Layers
Layers can now be tinted by multiplying their pixels with a color. This way you can darken or colorize your graphics in various ways without needing to set up separate images for it! The new "Tint Color" property is supported on tile layers, object layers and image layers, and is inherited from group layers.
Object Alignment
Ever since tile objects were added as a feature, their alignment has been inconsistent with the other shapes. Whereas a rectangle had its origin in the top-left, tile objects had their origin in the bottom-left (or even bottom-center, on isometric maps). While useful in some contexts, this inconsistency has annoyed many people over the years.
Now, a new tileset property specifies which alignment to use for tile objects using that tileset. If you set it to top-left, the tile objects will align consistently with the other objects. But of course you could also choose for bottom-center or center alignment depending on your needs.
Object Reference Properties
This change is a big step towards the Connecting Objects feature, which is planned for Tiled 1.4. You can now choose "object" as the type when adding a custom property, and the property will be interpreted as a reference to an object on the map, referring to it by its unique ID. A special dialog makes it easy to search for the object you want to refer to and the name of the referenced object will be displayed.
Changelog
Here are all the improvements made since the last snapshot.
Gnumaru
- Added layer tint color (with Thorbjørn Lindeijer, #2687)
Katia Piazza
- Translated using Weblate (Italian)
Phlosioneer
- Added object alignment property to tileset (with Thorbjørn Lindeijer, #2698)
- Added object reference custom property type (with Thorbjørn Lindeijer, #2712)
- Added automatic reloading of object templates (#2699)
- Scripting: Provide access to existing file formats (#2716)
- Scripting: Assign global variables to console script evaluations (#2724)
- Scripting: Added checks for nullptr arguments (#2736)
- Optimized loading of CSV tile layer data (#2701)
- Optimized first-draw of large maps by ensuring a minimum scale (#2707)
- libtiled-java: Fixed writing of the tile type (#2704)
- docs: Clarify "can contain" documentation and error handling (#2702)
- docs: Document all optional attributes (#2705)
- docs: Alphabetize scripting API reference (#2720)
- docs: Fixed broken link to tile flipping (#2723)
- docs: Added missing BinaryFile constructor docs, fix style (#2732)
Thorbjørn Lindeijer
- Added support for converting between 'string' and 'file' properties
- AppVeyor: Set up release-signing by SignPath
- Fixed initialization of selected layers (#2719)
- Fixed displayed layer data format in Properties
- Fixed restoring of the active file in last session
- Fixed repeating of export when map is saved by a custom command (#2709)
- Fixed context menus activating first item on release
- Scripting: Support FilePath and ObjectRef custom properties
- Projects: Improved starting paths when saving projects and adding folders
- Projects: Fixed updating of "last session" when saving project under new name
- docs: Added some notes to Python and JavaScript pages (#2725)
Tim Cooper
- docs: Added go-tiled library (#2728)
- Added ability to convert object reference property to and from int (#2734)
obeezzy
- Fixed issue where image layer images cannot be loaded from Qt resource files (#2711)
odamite
- Translated using Weblate (Finnish)
Many thanks to all who have contributed to this development snapshot!
Support Tiled Development
To keep improving Tiled, I depend on your support! If you're looking forward to the next new feature release, please consider supporting me on GitHub Sponsors, Patreon or Liberapay. Thank you!
Files
Get Tiled Map Editor
Tiled Map Editor
Free, easy to use and flexible level editor.
Status | In development |
Category | Tool |
Author | Thorbjørn Lindeijer |
Tags | 2D, Level Editor, Tilemap |
Languages | Bulgarian, German, English, Spanish; Castilian, Finnish, French, Hungarian, Japanese, Korean, Norwegian Bokmål, Dutch, Russian, Turkish, Ukrainian, Chinese |
More posts
- Tiled 1.11 ReleasedJun 27, 2024
- Tiled 1.10.2 ReleasedAug 05, 2023
- Tiled 1.10.1 ReleasedApr 04, 2023
- Tiled 1.10 ReleasedMar 10, 2023
- Tiled 1.9.2 ReleasedSep 16, 2022
- Tiled 1.9.1 ReleasedAug 11, 2022
- Tiled 1.9 ReleasedJun 25, 2022
- Tiled 1.8.6 ReleasedJun 15, 2022
- Tiled 1.8.5 ReleasedMay 17, 2022
- Tiled 1.9 Alpha ReleasedApr 08, 2022
Comments
Log in with itch.io to leave a comment.
Sorry to bring up this old topic, but I cannot find the settings for the "Object Alignment".
I have tried the current tiled version, the current snapshot AND the 2020.01.22 snapshot build.
As far as I understand there should be an additional property in the tileset property list (besides ID, Type, Width, Height and Probability). However, I cannot see it. Any advice?
No problem about old topic! The properties you mention are tile properties, not tileset properties. The "Object Alignment" is a tileset property, which affects all the tiles in that tileset. You can open the tileset properties by opening the tileset and then through the menu Tileset > Tileset Properties. I recommend just using the latest snapshot version (Tiled 1.3.4 does not have this property yet).
Thanks for your quick reply!
OK, I found it. I thought it was a "tile"-property because each of my objects on the layer has a different "anchor"-point and I wanted to specify that point for each tile.
The option does not allow individual pixel values, but thats fine. With the "bottom" setting I can place the objects and when loading the map in the game I can calculate the "correct" position.
Thanks again and keep up the great work!
Oh man, I didn’t see the note in here about object origins being “fixed” until now. Awesome!
Nice! I appreciate the work that is already following this new release of Tiled. Keep up the work everyone :D
Thank you!! The tint will help me a lot in my maps!!!