Okay, well I will try... (not that could in explaining stuff)
First, make a new object layer and name it: "Animations".
Now you just add some objects, and make sure the size of them is suitable for the size of tiles. There is an option in Tiled for this (can't check this right now). Name the Objects in a typical way. e.g. water for water animations.
Now add the following Properties and values:
start: x,y // first tile for the animation
tilesTake: z // number of tiles the animation takes
duration: time // the time between each frame
So know to read the layer make an new class which extends from TiledMap.
In the constructor, you just iterate trough the object layers an search for a layer with the name: "Animations". Now you iterate trough the objects from this layer and add a new Animation for every entry, add frames like set in the Properties.
That's all, Just work with Tiled Editor and get use to it and stuff, you will see that this is a good way to add static none moving objects to the map.
I can't post src sry... Maybe my PC will return next week and i can post some code. Tho it's dirty right now xD
_________________Current Projects: Mr. Hat I Vegan Vs. ZombiesProjects:RadicalFish Engine
- Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!