No data about animation under tileset.tileData (animating tilelayers)

I was trying to use Niklas Berg’s phaser-animated-tiles plugin to animate my tilelayers: https://github.com/nkholski/phaser-animated-tiles , but I could not get it to work, so I copied the animating functions and debugged it, I looked through tileset and tileData, but there was no fields about animation despite the info being there in the tilemap json.

It could be because I am using Phaser 3 version 3.15.1, tiled version 1.2.1 and the plugin uses 3.8.0, tiled version 1.0.2, but where in the map object should the info about animations be stored in later versions of Phaser?

My codesandbox to illustrate the problem, the water should be animated: https://codesandbox.io/s/149w2lwy67

Phaser v2.x.x is not compatible with Phaser III… can’t remember where I saw this. Here’s a growing list of Phaser III plugin from a book I found entitled “Phaser III Game Prototypes” in the Appendix: Phaser III plugins.

I invite everyone to add to this list (generously).

I highly recommend phaser3-rex-notes on GitHub as your first stop for any Phaser III plugins. There is superior documentation located at https://rexrainbow.github.io/phaser3-rex-notes/docs/site/ Current as of last visit are the Phaser III available plugins: 20181211

  • actions (Hexagon and Quad grid)
  • audio (fade and midiplayer)
  • behaviors (boid, bullet, 8-directions, fade, flash, interception, moveto, pathfollower, rotateto, scale, ship,textpage, texttyping)
  • board (board, chess,grid, hexagonmap, match, miniboard, monopoly, moveto, pathfinder, shape utils)
  • data (bank, csvtoarray, csvtohashtable, pool, restorabledata)
  • gameobjects (bbocdtext, canvas, containerlite, gridtable, shape, tagtext)
  • geom (hexagon, quad, shombus, utils)
  • input (button, cursoratbound, drag, dragscale, dragspeed, mousewheeltoupdonw, scroller, slider, touchsursor, touchstate, virtualjoystick)
  • loader (awaitloader, webfontloader)
  • logic (achievements, conditionstable, fsm, runcommands, waitevents)
  • math/gashapon (Gashapon.js)
  • shaders (pixelation, swirl)
  • string (lzstring, xor)
  • time (clock, lifetime)
  • utils (… 25 total! in this directory)

Other resources:

I encountered the same problem as LordLaharlsVassal. I messed up the Phaser JSON parser a bit, but I still could not get it to work. There is a working example with older versions, but I’m not sure why it works: http://metroid.niklasberg.se/phaser-animated-tiles/

Is there anyone who uses the plugin and could explain?

@LordLaharlsVassal If you use an older Tiled version (1.0.2 for example, find the archive here: https://update.mapeditor.org/snapshots-win/archive/2017/) the exported json data looks different. Phaser will recognize it and parse differently. tileset.tileData looks correct then.

According to the new changelog this will be fixed in version 3.16.0