Creating Level unlock and lock

Hye everyone…

i have a question regarding on Creating Level

how i want to make if the player score achieve 30 in level 1 then it will automatic unlock the Level 2.

I don’t know much about your Load Level function, also I have no idea if you are writing your code from custom or using one of these new asset things. But in general I would just put a check wherever you tabulate score. Do something simple like:

if playerScore \>= 30 then myFunctions.LoadLevel (playerCurrentLevel+1) end

I don’t know much about your Load Level function, also I have no idea if you are writing your code from custom or using one of these new asset things. But in general I would just put a check wherever you tabulate score. Do something simple like:

if playerScore \>= 30 then myFunctions.LoadLevel (playerCurrentLevel+1) end