The animation-class is still very limited. It would be great to be able to control the order of sprites much more.
One improvement would be to separate the information about the order of the sprites from the actual surfaces. One argument could be the list of all the surfaces, and another one the order in which these surfaces should appear - which could be much longer than the amount of surfaces given. To combine it with the length of the single sprites, a list could look like this:
The animation-class is still very limited. It would be great to be able to control the order of sprites much more.
One improvement would be to separate the information about the order of the sprites from the actual surfaces. One argument could be the list of all the surfaces, and another one the order in which these surfaces should appear - which could be much longer than the amount of surfaces given. To combine it with the length of the single sprites, a list could look like this:
An animation that plays its surfaces in order 1, 2, 1, 3, 1, 2, 1, 3 with each frame being showed 100 frames would then look like this: