New answers tagged


It looks like you never assign the game member-variable in your TitleScreen class, so it is null when the click handler is invoked. Try setting the game variable in the constructor of TitleScreen, you are already passing in a Game instance called aGame, you problably want to assign that to game: public GameScreen(Game aGame){ batch = new SpriteBatch(); ...

Top 50 recent answers are included