Hello everyone I have a problem with main menu and unlock levels I have 15 levels and 14 of them are locked and the player have to earn 5 coins to go to the next level but when player lose and in game over UI the button of main menu exist if he touch it automatically the next level unlocked can anyone help me with this ?
The cleanest way to unlock multiple levels is to have a level completed UI where you tell your user " you're ready to move on" or "you win" or something and on that UI make sure there is an unlock and then you just set what world gets unlocked, this way the unlock is never triggered unless they meet the goal of the level prior
This is what we have done. Create a screen endgame for each world. In the endgame screen, put the Unlock object for level 2. Do the same for each world.
I have done this too. It would be nice to have a dynamic end level screen though and not have to create one for each level. The only difference is which level is unlocked, which level is shown in the label (Level X Complete...), and where to go next... Just saying