- Home /
Making Profiles?
I'm sorry to ask so many questions, but my searching gets me bad results. I need to know how to have a player be able to create a profile from the Main Menu. Now I've tried multiple things, but I just don't get scripting yet, so it doesn't work. Is it even possible to create a profile? If so, how would I go about incorporating this into the game? This game is meant to be played online multiplayer. So I need usernames, kind of like the game Halo PC. It uses Usernames for it's multiplayer, I need that same effect. Thanks! ~Preston
yes, it is total possible and is also possible to create an account using an email and that's my question, if you also what the email or simple account(like name profile, real name, password, age, etc...)
also voted up for making a good and interesting question
not formal answer so thats why put it here but I recommend you to use labels: http://unity3d.com/support/documentation/ScriptReference/GUI.Label.html textfield for name and all that stuff: http://unity3d.com/support/documentation/ScriptReference/GUI.TextField.html password field for password: http://unity3d.com/support/documentation/ScriptReference/GUI.TextField.html button to create account: http://unity3d.com/support/documentation/ScriptReference/GUI.Button.html and more you can found in GUI: http://unity3d.com/support/documentation/ScriptReference/GUI.html
I recommend learning scripting... You sound like you want to make a $$anonymous$$$$anonymous$$O without scripting experience... Unless you have a good couple million dollars you can blow, then it isn't going to happen unless you spend a good 5 months learning how to script... But just my opinion.
No no, I must not be getting the point across. I meant when you get to the $$anonymous$$ain $$anonymous$$enu, it will read "Select Profile", where you can scroll through the profiles and select your own. And then you can just select map, and play online (a game like Halo, shooting, round over, restart)
Answer by Uriel_96 · Mar 24, 2011 at 02:32 AM
as I see that you don't get an answer I will answer with an missing part, but this is just an idea not a original form so you will need to transform it at your situation:
var actualacounts = 0;
var account : String[];
var password : String[];
//first do all your GUI's
//Then at register
if(/*Clic button register*/){
account[actualacounts] = textfieldaccount;//Textfieldaccount: the variable that has the information of the name of the account
password[actualacounts] = passwordfieldaccount;
actualacounts++;
}
//Then at login
var findaccount = /*Find account that is equal of what you put in the textfield*/;//This is the missing part
if(/*Clic button login*/){
if(/*findaccount finds the account*/){
if(password[findaccount] == textpasswordlogin){//textpasswordlogin: variable that has information of what you put in the password
Pass();
}else{
Debug.Log("This password is wrong");
}
}else{
Debug.Log("This account doesn't exist");
}
}