Gunther Active Member Licensed User Longtime User May 23, 2016 #1 Hi, 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. Greetings
Hi, 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. Greetings
Informatix Expert Licensed User Longtime User May 23, 2016 #2 Gunther said: Hi, 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. Greetings Click to expand... What's the contents of the log when the app crashes? Upvote 0
Gunther said: Hi, 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. Greetings Click to expand... What's the contents of the log when the app crashes?
Gunther Active Member Licensed User Longtime User May 23, 2016 #3 it starts here: java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile Merçi Upvote 0
it starts here: java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile Merçi
Informatix Expert Licensed User Longtime User May 23, 2016 #4 Gunther said: it starts here: java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile Merçi Click to expand... I will investigate this issue tomorrow. Upvote 0
Gunther said: it starts here: java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile Merçi Click to expand... I will investigate this issue tomorrow.
Informatix Expert Licensed User Longtime User May 24, 2016 #5 Gunther said: it starts here: java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile Merçi Click to expand... 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. Upvote 0
Gunther said: it starts here: java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile cannot be cast to com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile Merçi Click to expand... 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.
Gunther Active Member Licensed User Longtime User May 24, 2016 #6 ok, thanks I will check that out. It is most probably like you assume. Any way to check the type of the tile? Last edited: May 24, 2016 Upvote 0
ok, thanks I will check that out. It is most probably like you assume. Any way to check the type of the tile?