Page 1 of 1

Animated tiles dumb question

Posted: 18 Apr 2010, 03:57
by Len
" Animated tiles

To make a type of tiles animated go to Tilesets->Tileset Manager. Then select the tileset with the tile and all of its animation frames (they have to be on one tileset) and click on the icon with a pencil on a piece of paper (the tooltip reads "Edit...").

Select the tile you want to be animated on the list to the left. You should see a table on the right with two columns named "Name" and "Value". You have to describe the animation of the tile in this table. Here an example for a 3-phase animation:

NAME VALUE
animation-frame0 0
animation-delay0 100
animation-frame1 16
animation-delay1 100
animation-frame2 48
animation-delay2 100

animation-frameX is the Tile number (as shown in the list on the left) and animation-delayX is how long it is shown (100 is equal to one second).

The animation does not show up in Tiled."
This might seem like a stupid question but I've already placed a lot of tiles down before doing this, will defining this now automatically animate those tiles I've already placed? (as I hope)

Re: Animated tiles dumb question

Posted: 18 Apr 2010, 04:15
by wolf_pack
Sounds like your working very hard Len. I like your site by the way looks very promising. Sorry for posting without having an answer. xD

Re: Animated tiles dumb question

Posted: 18 Apr 2010, 05:14
by Jaxad0127
Len wrote:
" Animated tiles

To make a type of tiles animated go to Tilesets->Tileset Manager. Then select the tileset with the tile and all of its animation frames (they have to be on one tileset) and click on the icon with a pencil on a piece of paper (the tooltip reads "Edit...").

Select the tile you want to be animated on the list to the left. You should see a table on the right with two columns named "Name" and "Value". You have to describe the animation of the tile in this table. Here an example for a 3-phase animation:

NAME VALUE
animation-frame0 0
animation-delay0 100
animation-frame1 16
animation-delay1 100
animation-frame2 48
animation-delay2 100

animation-frameX is the Tile number (as shown in the list on the left) and animation-delayX is how long it is shown (100 is equal to one second).

The animation does not show up in Tiled."
This might seem like a stupid question but I've already placed a lot of tiles down before doing this, will defining this now automatically animate those tiles I've already placed? (as I hope)
Yes. I suggest you use tsx files for holding the info, so you don't have to do it again for every map. The next release already supports them (older don't).