Nice to hear you’re enjoying Tiled! Unfortunately though, tile animations are currently not implemented in libtiled-java. The
AnimatedTile class is an old remnant from Tiled Java and not currently functional.
If you’d like to look into supporting tile animations, you should start with the generated
org.mapeditor.core.Animation (referenced from
TileData.animation) and look into some way of driving the animation and rendering the “current frame” when rendering a tile. It may be that the code in
AnimatedTile helps, but it could also be misleading.
Since I don’t personally code Java at the moment, any help in maintaining or improving libtiled-java is greatly appreciated!