Hi Trixtor, thank you for your quick answer.
I found error. I have set compiler to 1.7 in Spriter, and 1.6 in android project ... :roll:
But now I had nullpointer expection in android, on SpriterPlayer init.
On desktop it work, but only if i have a monster folder in desktop projekt folder. I didnt take resources from asset, but they are linked.
On android there is
09-16 10:59:20.205: E/AndroidRuntime(26435): FATAL EXCEPTION: GLThread 25281
09-16 10:59:20.205: E/AndroidRuntime(26435): java.lang.NullPointerException
09-16 10:59:20.205: E/AndroidRuntime(26435): at com.brashmonkey.spriter.player.SpriterPlayer.(SpriterPlayer.java:103)
I use your loader and drawer, and i just showing animation in middle of screen.
I created new project via Libgdx setup ui.
My loading code is:
public GameScreen(MainGame game) { this.game = game; this.batch = new SpriteBatch(); this.shapeRenderer = new ShapeRenderer(); this.loader = new SpriterLoader(true); this.drawer = new SpriterDrawer(this.batch); this.drawer.renderer = this.shapeRenderer; try { spriter = Spriter.getSpriter(Gdx.files.internal("monster/basic.scml").file(), loader); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } camera = new OrthographicCamera(); camera.setToOrtho(false,480,320); camera.update(); this.player = new SpriterPlayer(spriter, 0, loader); }