Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Default animation duration #1631
Hi, is there any way to set default animation frame duration in tile animations editor? The default 100 does not fit me and I have to do around 500 animated tiles, so I would love to have a way to set it by default to something else. I don't mind compiling my own version of tiled with different value, but I was not able to find, where it is set in code.
Yes, there should definitely be a way to change the default duration.
If compiling your own Tiled isn't a problem, you can change this line in
static const int DEFAULT_DURATION = 100;
I kind of pity you even with a good default duration... the current animation editor is really not suitable for setting up a huge amount of animations, and you may be better off using a text editor. Suggestions for how to improve the UI are welcome.
Hi, thanks for response :) I will try to compile it with different duration as you suggested.
So for your question about UI, not sure how this will fit in and be actually implementable, but you can do some multiselect for tiles, so you select a pattern, say first 10 rows, first column and mark them as first frame, then using the same pattern you can select another frames. This will work only in case that image files are well-structured, but that should be the case anyway.
So in this case you could select first four rows and mark them as first frame, then 5-8 rows and mark as second frame, and 9-12 rows as third frame.
That could improve it a bit and also fasten the process of animating tiles. But this may be only my usage case and others might have other ideas for UI improvement.