Unity 3D lock system For games for selecting levels . Locking and Unlocking scenes demo .
Пікірлер: 33
@sevemz33592 жыл бұрын
Simple and easy to figure out
@ClearTavarez5 жыл бұрын
How do I unlock a button after it has been locked? I would like to change the image back to how it was and also want it to change based on when another button was clicked. Meaning, my levels are not different scenes and are instead different canvases controlled by buttons that make them visible and not visible. When I click on a button to go on to the next level, that should make the lock go away in the level select canvas for that level. How do I do that?
@muhammadnumansharif5 жыл бұрын
Good job.
@Flaitspi6 жыл бұрын
gracias!
@santoshdahal44946 жыл бұрын
Wow wow a big wow for u
@mr.artisan5 жыл бұрын
Or maybe is here someone that know what i need to write in the script to have level after level unlocked ?
@minesmr4 жыл бұрын
it is working good, but what about lvl 2, 3, 4, 5 etc ... ? ;(
@erorohim4314 жыл бұрын
Can you help me for unlock level my project??
@ayesstudios5 жыл бұрын
Nice Video, It really helped me. How can I disable the button text (level numbers 1,2,3,4) when the level is locked. I only want the level number visible when its unlocked.
@EducationalWorld5 жыл бұрын
use .... another text above every button .. it will do
@androidgamesplaylive12525 жыл бұрын
How to unlock second level please make video
@namiaNNS5 жыл бұрын
how can i make the next level unlocked?
@EducationalWorld5 жыл бұрын
if you complete the level store the value in playerprefs and get the value
@mr.artisan5 жыл бұрын
Not working properly. After i reach level 2 and return to menu, level 2 is still locked and should be unlocked...what i have to add to the script ?
@EducationalWorld5 жыл бұрын
if level completed then get the current value of the "level" using playerprefs increase the level and again save it using Playerprefs ..
@mr.artisan5 жыл бұрын
@@EducationalWorld Thx. But i don`t know how to use playerprefs...can you write the code here in comments for me please ? Maybe will help also others.
@EducationalWorld5 жыл бұрын
place this in game finish section (scene where gamefishish ni known) if(gamefinish){ int level= Playerprefs.GetInt("level",0); level=level+1; Playerprefs.SetInt("level",level); } place this in level locking scene (same as in video ) int level=Playerprefs.GetInt("level",0); other described in video
@mr.artisan5 жыл бұрын
@@EducationalWorld Is not working...now i get this in console "Assets/LevelManager.cs(15,13): warning CS0219: The variable `level' is assigned but its value is never used" Can`t save the level progress...another solution ? Just to know, i followed your guide step by step, i have 10 levels (scenes) and the lock buttons are not changing to unlocked ...i don`t know what to do next..i`m stuck there. Can you help me please ?
@EducationalWorld5 жыл бұрын
send me the snipshot of ... using playerprefs in gameplaying script and level lock ...... The variable `level' is assigned but its value is never used" this not the error this is just the warning . in LevelManager.cs you for got to use for(i=level ,i