Login | Register

Password and username

September 6, 2006, 14:34 by Calle
[loading]
-->
Question: "how do you make it so when you click on newgame you to write in a username and password. i need a code or some thing a.s.a.p please"

Answer: You are not very specific. Do you use GML? These kind of thing are ideally done by the function get_string, but to use it, you need to know how to use variables. Here is an example code:

name = get_string("Please enter your username:","";);
password = get_string("Please enter your password:","";);

if (name=="death-droid";) && (password=="secret";) {
room_goto(room_play);
}

<b>Also take a look at:</b>
http://gmtutorials.com/article/easy/register-a-user/
http://gmtutorials.com/article/advanced/input-textbox/

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games