- Home /
Animated Tile control
Hi all,
I have made an animated 2d tileset that I would like to use in unity. Each tile has a 12 frame animation. The goal is to make any tile to play its animation once at random intervals of 12 frame multiples.
I have downloaded the 2d-extras package. It includes the Animated Tile prefab, but I can't find any means to control the animation. The tile class only seems to provide animation data to some global animator once.
Any suggestions/links to tutorials to aid me in my quest?
Thanks in advance for any help provided :)
Edit: I just figured it might be possible to make an animated and an unanimated version of the tile. These could then be swapped out in the tilemap. However, that would require looping over each tile every 12 frames and storing twice the ammount of tiles. Could I create a script on the tilemap to do such a thing?