How it is possible to make use of the integrated animation editor of Tiled? When I have added an animated tile in tiled map used with libGDX it crashes right away when the loop is running.
How it is possible to make use of the integrated animation editor of Tiled? When I have added an animated tile in tiled map used with libGDX it crashes right away when the loop is running.
java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile
java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile
java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile
I tried a TMX file with animated tiles and got no error, so the error is in your code. You probably try to use a function or property of StaticTiledMapTile for an animated tile, or you try to fill a static tile with an animated one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.