LibGDX - Screen states issue

Hi there,

I’m having a bit of an issue. I am able to render my menu just fine, however when I try and spritebatch draw anything on the second menu it crashes.

Thanks

Try to put some effort into describing your problem. For example, tell us:

  • what is the error that you see? any stack trace?
  • what library do you use for your GUI? Scene2D UI or something else?
  • show us some code you think the problem may lie in (in code tags: [ code ] … [ / code ] for readability)

What Grunnt said, you would benefit from writing more before posting.

Do you initialize the spritebatch before you use it on the second menu? This sounds like a simple issue which could be taken care of easily if you used the stack trace.