Tile Source Animation Not In order

Hello,
I am new in using Defold so this question might sound stupid. I have a sprite sheet where the animations in it are not in order. Is there a way in Defold to make animation with weird indices using tile source. For example: my animation frames are [3, 8, 2, 6] in the sprite sheet, Is there a way to create that animation by using tile source.

Thanks a lot.

2 Likes

Hi!

That’s currently not possible with a tile source, it’s a good suggestion for a feature though!

If you split up the frames in the input file into multiple files you can add them to an atlas instead. Within an atlas you can create animations with arbitrary images/frames.

3 Likes

You can easily split tilesource, for example online with Piskel or Imagesplitter :wink: I think that arbitrary frames in a tilesource animation is a nice feature too!

1 Like

I see, I figured that was the case.
I’m currently using this free useful tool for that: Spritesheet slicing and animaing tool

It’s similar to how Unity subdivides sprites by col and row. I really like how I can visualize the animation here as well.