Sign in to follow this  
nkholski

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.

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.