Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down
avatar
Member [Lv. 2]
Member [Lv. 2]
Posts : 5
Points : 1093
Rep : 0
Join date : 2015-08-07
Age : 19
Location : India
View user profile

Need help to apply password on "Level Selection Menu" !!!

on Wed Aug 12, 2015 3:18 am
Hey guys I am participation in Game Developing competition and it is on 17th of August so  I need your instant help ...
So I have created a Level Selection Menu with 4 levels in it and I need to apply password on different levels ...
It should be like when I click on the level button I would I have to enter a password in order to start the assigned level scene ...
can anybody help me with the same !?
Member [Lv. 3]
Member [Lv. 3]
Posts : 25
Points : 1753
Rep : 7
Join date : 2013-12-14
View user profile

Re: Need help to apply password on "Level Selection Menu" !!!

on Tue Sep 08, 2015 1:43 am
Word based sudo Again cause i have noneyour code to work with..

Basically its a check system..

1- are users setting passwords
2- are you..

link a variable to the level that checks the string once the mouse(0) is clicked

string pw = "PASSWORDLEVEL1";
TextInput = secret; // GUI input


Mouse(0) Clicked
if(pw = secret)
{
     loadLevel(me);
}

Something along those lines =)..
Back to top
Permissions in this forum:
You cannot reply to topics in this forum