Scratch 1.4 has an ask question block, but how about a password block? the only difference would be that the text you type looks like black dots or * or something like that.
ask for password [text].
Offline
Yes, I would love that block! Though you can get around it - cover the characters with sprites. But that's very messy - the password block would be great!
Last edited by Jonathanpb (2010-04-05 02:23:19)
Offline
It's simple to re-create... just don't use the ask block. It'd be something like- "If key 5 pressed, add "5" to a list called password". A sprite that is in the shape of an asterisk * would move forward once, stamp and wait for the next character. Once you click something- like an on-screen "Enter" button- the asterisks would disappear and a sprite would consult the list "password" and check if it has the same characters in order of the actual password. If you made another list called "Saved Password" it would make it easier just to say, "if password = saved password."
If you'd like me to make a project with an example, I will.
Offline
Jakey22 wrote:
Scratch 1.4 has an ask question block, but how about a password block? the only difference would be that the text you type looks like black dots or * or something like that.
ask for password [text].
Well you could use the question block. Make it say Enter password. Make your password pizza. Then put if answer=pizza, brodcast password accepted.
Offline
wpd wrote:
Jakey22 wrote:
Scratch 1.4 has an ask question block, but how about a password block? the only difference would be that the text you type looks like black dots or * or something like that.
ask for password [text].Well you could use the question block. Make it say Enter password. Make your password pizza. Then put if answer=pizza, brodcast password accepted.
The point was to mask the word you type in.
Offline