Lock / Unlock Problem

Discussion in 'Technical Discussion' started by gashigashi, Sep 29, 2016.

  1. gashigashi

    gashigashi Avid Boxer

    Joined:
    Jul 8, 2016
    Messages:
    137
    Likes Received:
    9
    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 ?
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    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
     
    Christoph likes this.
  3. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    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.
     
    heathclose and gashigashi like this.
  4. mxstudios

    mxstudios Boxer

    Joined:
    Aug 30, 2016
    Messages:
    51
    Likes Received:
    13
    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 :)
     

Share This Page