we can see its a null pointer exception.the next line says exactly where it is, inside Screen_Game2 inside the render method and the error is at line 83

we can tell one of the variables is null as if the crash was caused by something in the player class you would get this instead

1 2 3 4 5 6 7 8 9 10 11 12

//What thread the exception was located in, and what type of errorExceptioninthread"LWJGL Application"java.lang.NullPointerException

//this line would say it is inside the render method IF IT WAS THE CAUSEatpathToPlayer.Player.render(Player.java:someLineNumberHere)

//player.render is called within this class at line 83atscreens.Screen_Game2.render(Screen_Game2.java:83)

//more sub classes that it went through to get to the Screen_Game2 loopatcom.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:204)atcom.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:112)

skipping to your problem:

line 83 is

1

player.draw(batch);

either player or batch is not initialized, I can see the player is not initialized.

read up on stack traces so you can solve simple errors like this without assistance.

also, as a side note: correct me if wrong, I really have not used LibGDX, only played around with it for a hour or 2, So I'm not sure if the spritebatcher sets the font to be rendered after images or anything, but I am doubting that.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org