Animated tilemap/background


(B6ka) #1

Hi, just a quick question. Is it possible to have animated tiles when using the tile maps? Or is it better to selectively add some sprites (using FP.world.addGraphic() ) to the areas I want to animate? I have an entity to manage the tiles. The graphic property of this entity is set to the Tilemap object. Thanks for the reply.


(Jacob Albano) #2

You can use a TiledSpritemap to repeat the same animated sprite across the screen, but it sounds like your case would be better handled by placing individual Spritemaps at the locations you want to animate. Regular Tilemaps do not have that behavior built in.


(B6ka) #3

Thanks, Jacob, I though so. I guess I will place individual sprites :slight_smile:


(Zachary Lewis) #4

@jacobalbano What do you think the best way to handle an animated overworld map, like ocean tiles in a JRPG?


(Jacob Albano) #5

I’d probably use a TiledSpritemap below a regular tilemap with empty spaces. This has me thinking though; TiledSpritemap could probably benefit from the ability to set “cells” on and off.