Jump to content

Phaser 3 Animated Tiles Plugin


Recommended Posts

I've prepared a plugin in time for the release of Phaser 3 today: support for animated tiles. The plugin parses tile animation data configured in Tiled and then, well, animates layers (dynamic layers required). All you need is three lines of code; one for preloading the plugin, a second for installing the plugin and the third for initializing it for a map.



  1. Animate tiles as configured and displayed in Tiled.
  2. Support for unlimited tile animations, layers, maps, and tilesets.
  3. Use the API to manipulate the rate (multiplier of the frame duration set in Tiled) globally or for a certain tile id or map.
  4. Animations adapt to the timeScale set by the Phaser 3 API.
  5. Add and remove animated tiles any time.

API demo: http://metroid.niklasberg.se/phaser-animated-tiles
Playable demo (question marks are animated tiles): http://metroid.niklasberg.se/phaser3platformer/
Github repository: https://github.com/nkholski/phaser-animated-tiles

Suggestions are welcome and if you use the plugin, please tell!

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...