title: Can i use TileMap class in Slick2D for render an animated tile form a tileset?
body: <p>In Tiled, a program to create a tilemap i create a animated tile in the tileset, but when i run the application i get an error; i have a map.tmx, tileset.tsx and the tilese.png in the same directory.
  At this point my question is if the TiledMap class of Slick2D can support the animation of a tile.</p>
  <p>here my map.tmx file</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;map version=&quot;1.5&quot; tiledversion=&quot;1.7.2&quot; orientation=&quot;orthogonal&quot; renderorder=&quot;right-down&quot; width=&quot;32&quot; height=&quot;32&quot; tilewidth=&quot;16&quot; tileheight=&quot;16&quot; infinite=&quot;0&quot; nextlayerid=&quot;5&quot; nextobjectid=&quot;1&quot;&gt;
   &lt;tileset firstgid=&quot;1&quot; name=&quot;tileset&quot; tilewidth=&quot;16&quot; tileheight=&quot;16&quot; tilecount=&quot;7984&quot; columns=&quot;8&quot;&gt;
    &lt;image source=&quot;tileset.png&quot; width=&quot;128&quot; height=&quot;15971&quot;/&gt;
    &lt;tile id=&quot;29&quot;&gt;
     &lt;animation&gt;
      &lt;frame tileid=&quot;8&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;9&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;10&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;11&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;19&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;27&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;28&quot; duration=&quot;500&quot;/&gt;
      &lt;frame tileid=&quot;29&quot; duration=&quot;500&quot;/&gt;
     &lt;/animation&gt;
    &lt;/tile&gt;
   &lt;/tileset&gt;
   &lt;layer id=&quot;1&quot; name=&quot;background&quot; width=&quot;32&quot; height=&quot;32&quot;&gt;
    &lt;data encoding=&quot;base64&quot; compression=&quot;gzip&quot;&gt;
     H4sIAAAAAAAACu3OoQEAIAzEwBaYg/3H5HeoQZyIOJeuqpV2OqmZ0/3sh5mZmZmZmWd+d2FN0wAQAAA=
    &lt;/data&gt;
   &lt;/layer&gt;
   &lt;layer id=&quot;4&quot; name=&quot;building&quot; width=&quot;32&quot; height=&quot;32&quot;&gt;
    &lt;data encoding=&quot;base64&quot; compression=&quot;gzip&quot;&gt;
     H4sIAAAAAAAACu3BAQ0AAADCoPdPbQ8HFAAAAPBuEQAcxwAQAAA=
    &lt;/data&gt;
   &lt;/layer&gt;
   &lt;layer id=&quot;2&quot; name=&quot;walls&quot; width=&quot;32&quot; height=&quot;32&quot;&gt;
    &lt;data encoding=&quot;base64&quot; compression=&quot;gzip&quot;&gt;
     H4sIAAAAAAAACu3BAQ0AAADCoPdPbQ8HFAAAAPBuEQAcxwAQAAA=
    &lt;/data&gt;
   &lt;/layer&gt;
   &lt;layer id=&quot;3&quot; name=&quot;objects&quot; width=&quot;32&quot; height=&quot;32&quot;&gt;
    &lt;data encoding=&quot;base64&quot; compression=&quot;gzip&quot;&gt;
     H4sIAAAAAAAACu3BAQ0AAADCoPdPbQ8HFAAAAPBuEQAcxwAQAAA=
    &lt;/data&gt;
   &lt;/layer&gt;
  &lt;/map&gt;
  
  </code></pre>
  <p>where the png file is in the same map.tmx file.
  When i try to lunch my application i get this error:</p>
  <pre><code>java.lang.NullPointerException
      at org.newdawn.slick.tiled.TileSet.&lt;init&gt;(TileSet.java:139)
      at org.newdawn.slick.tiled.TiledMap.load(TiledMap.java:661)
      at org.newdawn.slick.tiled.TiledMap.&lt;init&gt;(TiledMap.java:106)
      at org.newdawn.slick.tiled.TiledMap.&lt;init&gt;(TiledMap.java:90)
      at gameclass.world.Map.&lt;init&gt;(Map.java:16)
      at main.state.MainCity.init(MainCity.java:30)
      at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:171)
      at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
      at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
      at main.setup.SetupClass.main(SetupClass.java:29)
  Thu Nov 18 18:34:22 CET 2021 ERROR:Failed to parse tilemap
  org.newdawn.slick.SlickException: Failed to parse tilemap
      at org.newdawn.slick.tiled.TiledMap.load(TiledMap.java:695)
      at org.newdawn.slick.tiled.TiledMap.&lt;init&gt;(TiledMap.java:106)
      at org.newdawn.slick.tiled.TiledMap.&lt;init&gt;(TiledMap.java:90)
      at gameclass.world.Map.&lt;init&gt;(Map.java:16)
      at main.state.MainCity.init(MainCity.java:30)
      at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:171)
      at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
      at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
      at main.setup.SetupClass.main(SetupClass.java:29)
  Caused by: java.lang.NullPointerException
      at org.newdawn.slick.tiled.TileSet.&lt;init&gt;(TileSet.java:139)
      at org.newdawn.slick.tiled.TiledMap.load(TiledMap.java:661)
      ... 8 more
  
  Process finished with exit code 0
  </code></pre>
  <p>sorry for bad english btw</p>