# Tileset tile animation (from Tiled JSON map)

**URL:** <https://phaser.discourse.group/t/tileset-tile-animation-from-tiled-json-map/7969>\
**Category:** Phaser 3\
**Created:** [October 28, 2020, 2:20pm UTC](https://phaser.discourse.group/t/tileset-tile-animation-from-tiled-json-map/7969 "2020-10-28T14:20:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manz](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/manz/32/2658_2.png) [@Manz](https://phaser.discourse.group/u/Manz)\
**Post date:** [October 28, 2020, 2:20pm UTC](https://phaser.discourse.group/t/tileset-tile-animation-from-tiled-json-map/7969/1 "2020-10-28T14:20:54Z")

</div>

Hi!

I created a Tilemap with Tiled JSON format. I created a animation with Tiled. JSON code:

```javascript
"tiles": [ 
     { "animation": [
              { "duration": 200, "tileid": 80 },
              { "duration": 200, "tileid": 81 }
      ],
      "id": 80
    }],

```

I want animate this tile with Phaser.

- Can I animate this tile with official Phaser (without plugin)? It’s supported?
- Only I found this plugin ( [https://github.com/nkholski/phaser-animated-tiles](https://github.com/nkholski/phaser-animated-tiles) ). It’s compatible with Phaser3.24.1?

---

<div class="post-metadata">

**Author:** ![Manz](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/manz/32/2658_2.png) [@Manz](https://phaser.discourse.group/u/Manz)\
**Post date:** [October 28, 2020, 5:14pm UTC](https://phaser.discourse.group/t/tileset-tile-animation-from-tiled-json-map/7969/2 "2020-10-28T17:14:43Z")

</div>

Auto-answer:

With “phaser-animated-tiles” I get this error:

`Uncaught TypeError: Cannot read property 'type' of null`

Follow steps of this issue, I change `AnimatedTiles.js` and fix error to works in Phaser 3.24.1:

> <https://github.com/nkholski/phaser-animated-tiles/issues/10>
>
> I received the following error when calling this.animatedTiles.init
> Uncaught TypeError: Cannot read property 'type' of null
> What I found was that if there...
