[Feature Request] Animated tiles

At the moment you can only create flipbooks which you can put on a Paper2d Actor, but those cant be used in a tilemap and you have to place them manually.
It would be nice if you could make animated tiles in a tileset which you could easily playe in a tilemap.

I found this discussion on the topic:
https://forums.unrealengine.com/community/general-discussion/54061-paper-2d-animated-tiles

No real solution there, Iā€™m afraid, and it appears they came to the same conclusion as yourself.

Bumping, because this is one of the few threads I found while trying to find a solution to how to animate water tiles in a tilemap. Apparently the answer right now is ā€œyou canā€™tā€, and it would be really nice to be able to do so.

There are potential workarounds Iā€™ve found already, but they are tedious and in my opinion would be far less performant than a more native solution. An example Iā€™ve seen is storing a value in the User Data field per tile, and scanning every tile for the existence of such data and spawning an Actor or Flipbook at the tileā€™s location if it matches the value.

Please consider allowing for animated tiles in a tileset / tilemap!

Dumb Q since iā€™ve not looked into 2d much but if there is a material at play, can you not use a Flipbook and animate through the cells using the Time node? Animate in the shader of the tile vs ā€˜somewhere-elseā€™?

Again, blind-Q sorry if itā€™s a rabbit-hole.

You might even be able to use previous-frame-switch to help blend between the frames?

1 Like

As far as I can tell, if that were possible, it would not be an easy implementation. The Tile Set references a Texture asset instead of a Material, so I canā€™t do something there (at least to my knowledge anyway). There is a Material asset used by default for Tile Maps called MaskedUnlitSpriteMaterial, but it appears to apply to the entire Tile Map as a whole, and Iā€™ve no idea how Iā€™d go about writing logic for dealing with that on a tile by tile basis. Is it even possible to get and alter individual tile data at that point in the pipeline?

If there isnā€™t a way to do the logic in a Material for the tiles, Iā€™m not enthused at the idea of writing my own system for scanning every tile for every map at runtime in order to spawn animated tiles over dummy static tiles, compared to having an animated tile feature built in (which several other game engines have). I will begrudgingly do it if I must, but I would also continue to +1 this feature request, as I think all developers working on 2D projects would benefit from having a more standardized solution to something as common as ā€œanimated tiles inside a Tile Map, for things like ocean waves & etcā€.

So guessing you mean this: Paper 2D Tile Sets and Tile Maps in Unreal Engine | Unreal Engine 5.4 Documentation | Epic Developer Community

And yes, I donā€™t see how you can insert anything of consequence into that workflow; yikesā€¦ Game On.

1 Like