Jump to content

JeffreyWalraven

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by JeffreyWalraven

  1. Thanks! I put the file into a sub folder of the assets folder and that made it work. Keep up the good work!
  2. I have attached a file test and its assets. Also, here is the code I use for importing: m_spriterLoader = new SpriterLoader(true); m_spriterDrawer = new SpriterDrawer(m_stage.getSpriteBatch()); m_spriter = GdxSpriter.getSpriter("basic.scml", m_spriterLoader); m_spriterPlayer = new SpriterPlayer(m_spriter, 0, m_spriterLoader); m_spriterPlayer.setAnimatioIndex(0, 10, 100); No, I did not edit the SpriterLoader nor am I using a second thread. I did edit the SpriterDrawer, however, but I was just commenting out a debug draw line that threw an error. shapeRenderer.polyline(vertices); Spriter-Error-Example.zip
  3. Thanks! I really like the cleaned up code. For some reason, though, I can not use GdxSpriter to import. I have searched for a long time for an answer and have made sure my code followed the example completely. Here is the error I get: Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NullPointerException at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:113) Caused by: java.lang.NullPointerException at com.brashmonkey.spriter.objects.SpriterObject.setRef(SpriterObject.java:50) at com.brashmonkey.spriter.player.SpriterAbstractPlayer.generateData(SpriterAbstractPlayer.java:94) at com.brashmonkey.spriter.player.SpriterPlayer.(SpriterPlayer.java:81) at com.brashmonkey.spriter.player.SpriterPlayer.(SpriterPlayer.java:103) at org.jtechdev.larrythelightbulb.LarryHero.(LarryHero.java:87) at org.jtechdev.larrythelightbulb.LevelLoader.loadMap(LevelLoader.java:90) at org.jtechdev.larrythelightbulb.Screens.GameScreen.(GameScreen.java:95) at org.jtechdev.larrythelightbulb.Screens.SplashScreen.render(SplashScreen.java:59) at com.badlogic.gdx.Game.render(Game.java:46) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:187) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:110) The Spriter import works just fine. I did find though that if I used the monster scml file, then it would work. Tried saving my project as a new scml file and it still would not work. Do you think this is something wrong with Spriter corrupting the files? Thank you!
×
×
  • Create New...