Animated tiles dumb question

Talk about anything, including games and servers not affiliated with The Mana World.
Post Reply
User avatar
Len
Knight
Knight
Posts: 1479
Joined: 05 Feb 2007, 06:17
Location: Lurking in the shadows

Animated tiles dumb question

Post 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)
Image
Pixel Battalion
wolf_pack
Novice
Novice
Posts: 64
Joined: 21 Aug 2009, 00:21

Re: Animated tiles dumb question

Post 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
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: Animated tiles dumb question

Post 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).
Image
Post Reply