How to make animation for many tiles at once

Hello, apologies if question has been asked many times before, but I am genuinely wondering if there’s a more efficient way of defining tile animations, other than selecting a tile, choosing “tile animation editor” menu option, drag and drop tiles, repeat.

My tile set has above 100 tiles, with each tile has its own animation. It does become a bit tedious going through the GUI to do the animation for all tiles.

The frames are put vertically on top of each other in a sprite sheet, so potentially could I manually edit the .tmx file with a text editor to add the animation myself? Or is there a better way to do it?

Yes, you can.

As long as you select a text based format (Non binary), you can post process the MapFile to generate a new one with whatever you want changed, using scripting or hand editing.

Just keep in mind 2 things:

  • Backup your file to avoid loosing it
  • You need to know very well the format you are messing with, or you might end with an unusable MapFile