How do i create animated tilemap. For example, so that the tiles of water or lava on a large map are not static. Are there any projects examples? Thanks.
You could use a timer to increase tile ID of a tile.
I would use variables instead of fixed numbers but this is the basic concept.
If you wanted to animate multiple tiles then you could create an array of structures with the tile ID, row, column, starting tile ID, ending tile ID and even the animation speed if you wanted different rates. You could then use the array to create individual timers which would loop through the tiles.
1 Like
