Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » I need help to create a username detecter? please help
- Angusthemenace
-
14 posts
I need help to create a username detecter? please help
Last edited by Angusthemenace (Feb. 19, 2021 13:45:06)
- awesome-llama
-
1000+ posts
I need help to create a username detecter? please help
Use the username block:
In your project, you are asking for the user's name. I assume you want this to be automatic so you would want to do something like this:
For me, this say block will say: “Hi awesome-llama! Welcome to scratchtown zoo.”
If a user is not signed in, the username block will be blank, so something extra is needed.
It's up to you to decide. Maybe you could have the current scripts run, asking for the user's name. Alternatively, if you don't know the user's name, you could just not include it and say something like: “Hi! Welcome to scratchtown zoo.”
In your project, you are asking for the user's name. I assume you want this to be automatic so you would want to do something like this:
My username is awesome-llama.
For me, this say block will say: “Hi awesome-llama! Welcome to scratchtown zoo.”
If a user is not signed in, the username block will be blank, so something extra is needed.
It's up to you to decide. Maybe you could have the current scripts run, asking for the user's name. Alternatively, if you don't know the user's name, you could just not include it and say something like: “Hi! Welcome to scratchtown zoo.”
Last edited by awesome-llama (Feb. 19, 2021 14:24:24)
- CoolLionMan
-
1000+ posts
I need help to create a username detecter? please help
it doesn't have to be a forever loop because the username won't change
- -Crlxx-
-
100+ posts
I need help to create a username detecter? please help
Last edited by -Crlxx- (Feb. 19, 2021 14:06:42)
- HermioneGranger929
-
18 posts
I need help to create a username detecter? please help
You would put this question in Help with scripts, not in questions about scratch.
- lordibel
-
1000+ posts
I need help to create a username detecter? please help
More advanced way
;harder for people to ‘hack’ and change the username to theirs
Last edited by lordibel (Feb. 19, 2021 14:44:45)
- Alphysse
-
1000+ posts
I need help to create a username detecter? please help
So only an amalgamation of the users in “List” can use the project? More advanced way;harder for people to ‘hack’ and change the username to theirs
- lordibel
-
1000+ posts
I need help to create a username detecter? please help
Yes.
It's also easier so you don't have to do
if username contains ‘a’ or ‘b’ or ‘c’ or ‘d’ or ‘e’ or ‘f’ etc.
It's also easier so you don't have to do
if username contains ‘a’ or ‘b’ or ‘c’ or ‘d’ or ‘e’ or ‘f’ etc.
- Alphysse
-
1000+ posts
I need help to create a username detecter? please help
I think you've misunderstood; an Yes.amalgam(ation) is the combination of several things.
It's also easier so you don't have to do
if username contains ‘a’ or ‘b’ or ‘c’ or ‘d’ or ‘e’ or ‘f’ etc.
If the list was [“Alphysse”, “lordibel”], then a user would have to be Alphysse AND lordibel to use the project.
is a better way to implement this.
Last edited by Alphysse (Feb. 19, 2021 15:00:56)
- lordibel
-
1000+ posts
I need help to create a username detecter? please help
Ah yes. You would be right.I think you've misunderstood; an Yes.amalgam(ation) is the combination of several things.
It's also easier so you don't have to do
if username contains ‘a’ or ‘b’ or ‘c’ or ‘d’ or ‘e’ or ‘f’ etc.
If the list was [“Alphysse”, “lordibel”], then a user would have to be Alphysse AND lordibel to use the project.is a better way to implement this.
- Discussion Forums
- » Questions about Scratch
-
» I need help to create a username detecter? please help