The problem is, I am making a game about football, there are four classes.
MainActivity> GameLevelsMain> GameLevel1> Level1
1) MainActivity (There is only a button to go to GameLevelsMain and a code with saving)
2) GameLevelsMain (choose a level)
3) GameLevel1 (You choose the player you need to guess
4) Level1 (Guessing the footballer)
In Level1, when you guess the right player, you are given a couple of coins and the game is saved.
When you go back to GameLevel1 and go to Level1 again, everything works.
When switching from Level1 to GameLevelsMain and vice versa, you need to guess the player again (that is, the game was not saved, although there is a code to load data)
Is there a way to save this level somehow and so that the class data is not dumped?
Thank you in advance for your cooperation.
It’s hard to say, firstly, I need to look at the code that you wrote in the program … without it, nothing is clear. Contact the development company https://diceus.com/ they will help you solve all the problems that you have when creating a game.
You must be logged in to reply to this topic.
Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.
Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!