Jump to content

Phaser 3 Animated Tiles Plugin


nkholski
 Share

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.

5a835336bfb2f_animatedtiles.gif.7d72538af137673d69f9c5c09dd75976.gif

Features:

  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

 Share

  • Recently Browsing   0 members

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