I’m using special tiles from the Unity 2d-extras project. I have Animated Tiles, and I have Terrain Tiles. I want to combine their properties to create Animated Terrain Tiles. Tiles that change their shape if there are matching adjacent tiles, but are also animated.
I would expect this to be a common usecase, but I can’t seem to find anything.
My idea was to modify the standard “AnimatedTile” class to store an array of TerrainTiles, instead of Sprites. Then, whenever the Sprite array is needed, get the Sprite array of the current TerrainTile, based on the current animation frame. Problem is, I’m not sure if it’s possible to check the current animation frame. The “TileAnimationData” class doesn’t seem to provide much info. I’m stumped, and need some help finding a way to do this.
Can anyone help me create an Animated Terrain Tile?