You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
map = new NavTmxMapLoader().load("res/battlefield001.tmx",params); navLayer = (NavigationTiledMapLayer) map.getLayers().get("navigation");
But then I get Exception in thread "LWJGL Application" java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.TiledMapTileLayer cannot be cast to org.xguzm.pathfinding.gdxbridge.NavigationTiledMapLayer
I have used a navigation layer in Tiled etc.
What can I do?
Newest libgdx and tiled version.
The text was updated successfully, but these errors were encountered:
I did exactly what the guide said:
map = new NavTmxMapLoader().load("res/battlefield001.tmx",params);
navLayer = (NavigationTiledMapLayer) map.getLayers().get("navigation");
But then I get Exception in thread "LWJGL Application" java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.TiledMapTileLayer cannot be cast to org.xguzm.pathfinding.gdxbridge.NavigationTiledMapLayer
I have used a navigation layer in Tiled etc.
What can I do?
Newest libgdx and tiled version.
The text was updated successfully, but these errors were encountered: