[ UNITY ] Level Lock In Games

  Рет қаралды 5,169

Simplexedu

Simplexedu

6 жыл бұрын

Unity 3D lock system For games for selecting levels . Locking and Unlocking scenes demo .

Пікірлер: 33
@sevemz3359
@sevemz3359 2 жыл бұрын
Simple and easy to figure out
@ClearTavarez
@ClearTavarez 5 жыл бұрын
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?
@muhammadnumansharif
@muhammadnumansharif 5 жыл бұрын
Good job.
@Flaitspi
@Flaitspi 6 жыл бұрын
gracias!
@santoshdahal4494
@santoshdahal4494 6 жыл бұрын
Wow wow a big wow for u
@mr.artisan
@mr.artisan 5 жыл бұрын
Or maybe is here someone that know what i need to write in the script to have level after level unlocked ?
@minesmr
@minesmr 4 жыл бұрын
it is working good, but what about lvl 2, 3, 4, 5 etc ... ? ;(
@erorohim431
@erorohim431 4 жыл бұрын
Can you help me for unlock level my project??
@ayesstudios
@ayesstudios 5 жыл бұрын
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.
@EducationalWorld
@EducationalWorld 5 жыл бұрын
use .... another text above every button .. it will do
@androidgamesplaylive1252
@androidgamesplaylive1252 5 жыл бұрын
How to unlock second level please make video
@namiaNNS
@namiaNNS 5 жыл бұрын
how can i make the next level unlocked?
@EducationalWorld
@EducationalWorld 5 жыл бұрын
if you complete the level store the value in playerprefs and get the value
@mr.artisan
@mr.artisan 5 жыл бұрын
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 ?
@EducationalWorld
@EducationalWorld 5 жыл бұрын
if level completed then get the current value of the "level" using playerprefs increase the level and again save it using Playerprefs ..
@mr.artisan
@mr.artisan 5 жыл бұрын
@@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.
@EducationalWorld
@EducationalWorld 5 жыл бұрын
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.artisan
@mr.artisan 5 жыл бұрын
@@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 ?
@EducationalWorld
@EducationalWorld 5 жыл бұрын
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
@razvaniuga9164
@razvaniuga9164 5 жыл бұрын
I hope it works :*
@razvaniuga9164
@razvaniuga9164 5 жыл бұрын
it dosn't work, for me
@rangerraad5379
@rangerraad5379 5 жыл бұрын
ut saying Null Refrence
@spot8961
@spot8961 3 жыл бұрын
bro english please
[ Unity ] Manage and Store Score and Highscore
8:34
Simplexedu
Рет қаралды 1,1 М.
SLOPE MOVEMENT, SPRINTING & CROUCHING - Unity Tutorial
8:45
Dave / GameDevelopment
Рет қаралды 208 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 12 МЛН
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 12 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 11 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
So you want to make a Game Engine!? (WATCH THIS before you start)
14:39
Giant Sloth Games
Рет қаралды 271 М.
Awesome Third Person Shooter Controller! (Unity Tutorial)
36:10
Code Monkey
Рет қаралды 525 М.
Master Grid Placement in Unity 2022 P1 - Calculating Cell Position
12:05
Sunny Valley Studio
Рет қаралды 85 М.
Procedural Generation in Unity
10:22
TNTC
Рет қаралды 60 М.
Unlock Levels - Levels Menu - Unity (PlayerPrefs) - Tutorial
18:54
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 162 М.
Learn Unity in 17 MINUTES! [2024 UPDATED PINNED COMMENT]
17:27
Code Monkey
Рет қаралды 1,2 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 12 МЛН