Animation Feature Discussion
Is your feature request related to a problem? Please describe.
The Tiled animation system is very limited. At a high level the UX for creating animations is not the best. This could be supplemented by tools like one I maintain (see below), but the feature set for animations only seems to support coordinates (IDs) and timing values in milliseconds. I would like to add additional features to support some of the functionality that my AnimationEditor tool supports.
Describe the solution you'd like.
Ultimately the solution I would like is to be able to use the AnimationEditor to define animations. This would generate normal AnimationEditor files (as it already does) but it could also maintain a .tsx file as an "output".
Here is a screenshot of my animation tool:
This tool has the following functionality. I will categorize this as how easy I think it might be to support in tiled, or whether it even makes conceptual sense.
Already Supported
- Top left X/Y - maps to the ID of the tile
- Width values - so long as the animation is aligned to the tile boundary, then the tool could just create one animation per tile in the .tsx, one for each animation that is spanned by the original animation.
- Timing - already supported in milliseconds
Possible features
- Flipping horizontal, vertical, diagonal: This is already supported when painting tiles, but these are properties that live on the tile itself rather than on the animation. This could be promoted to an animation property which could control the Tile value
- Color tint - I know entire layers can be tinted. I don't know if individual tiles within a layer can be tinted, or if that could be controlled by animation
Unlikely
- X/Y offsets - I don't know if individual tiles can be offset, and this may not make sense when drawing tiles
- Animations that span multiple tilesets - I believe that currently animations live within a tileset rather than outside of tilesets so this may not be possible given the current structure
Describe alternatives you've considered.
I currently do have an export system from my application which can export .tsx files, so the "alternative" in this case is just a partial implementation which works for us, but having flipping/tinting might be helpful if we can get it.
I'm happy to discuss this further to see what we can accomplish together.
Source: mapeditor/tiled