Libgdx - How To Pass A Variable Value From One Screen To Another?
I'm creating a game for Android phones and I need a player number from screen where I select it to another screen where I use it for something else. On screen where I select specif
Solution 1:
Pass it through the constructor of the other screen
game.setScreen(new PlayScreen(var));
Post a Comment for "Libgdx - How To Pass A Variable Value From One Screen To Another?"