Discuss Scratch

chihuahua235
Scratcher
30 posts

How do you create a login and register?

Hi I am making a online virtual world game and I am very new here so I got confused…
Can somebody show me how and add pictures on how to do it? Sorry if I sounded rude btw
drmcw
Scratcher
1000+ posts

How do you create a login and register?

username
tells you if someone is logged in and if so who they are, so use that.
Exhelah
Scratcher
100+ posts

How do you create a login and register?

Here's a more in-depth explanation:

The program, on startup, checks the player's username. If the player's username is on a list of registered names (parsed from a cloud variable that contains all the players that have played the game), it asks for a set password (also parsed from a different cloud variable.) If the player's name isn't on the list, the program asks the user for a password that will be used to get in, adds it to the other variable, and the player is registered.

If you do not wish to have passwords, you can just skip those steps in the code. It isn't needed, but would be cooler.

-Exhelah
drmcw
Scratcher
1000+ posts

How do you create a login and register?

Exhelah wrote:

It isn't needed, but would be cooler.

-Exhelah

For cooler read “totally insecure”
mrals1
Scratcher
65 posts

How do you create a login and register?

Online as in players can interact?

Try cloud variables, But you can only store numbers…
SilverTheHedgehog4
Scratcher
100+ posts

How do you create a login and register?

You'll need to use cloud variables and all dat flip, x3 but you can't use cuz you new Scratcher. D:
Kandymations
Scratcher
15 posts

How do you create a login and register?

whenclickedifuserscontainsusernamethenaskWhat is your password?andwaitifanswer=their passwordthenbroadcastlog in

That's how I would do it, but you would have to know their password first.

Last edited by Kandymations (March 8, 2014 18:58:09)

The_Grits
Scratcher
1000+ posts

How do you create a login and register?

Lists are on one machine only and aren't cloud(yet?). Every time you reset the project, so does the list. @Kandymations solution won't work.(Sorry!)
Plus, to make cloud variables, you need to be a full scratcher, which you aren't. Just be active and it will be only a matter of time before you are a full scratcher!
Kandymations
Scratcher
15 posts

How do you create a login and register?

I would ask people to comment when they join, and then add their names onto something like this:

whenclickedaddScratchertousersaddRandomUsertousersaddTrololtousers
ArianaValentine
New Scratcher
1 post

How do you create a login and register?

Cool ! im making a online virtual world game too! And guess what im stuck on the same thing as you!
raheemscratch
Scratcher
6 posts

How do you create a login and register?

if it was just a login for scratch i would do when green flag clicked if username= (blank) then stop all else (start the game)

although i'm not sure if it works

Last edited by Paddle2See (May 28, 2016 12:45:05)

Powered by DjangoBB