Android Question libGDX Tiled animation editor

Gunther

Active Member
Licensed User
Longtime User
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
 
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
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
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:
Upvote 0
Back
Top