Pages: 1
-Hello everyone! I was just introduced to SCRATCH by one of my colleagues that uses it regularly for her class. I have been watching demos all day and am trying to get the hang of this program but I am far from being tech. savvy so this is going to be a challenge for me. I found directions for a SCRATCH program online (which is below) but unfortunately, I could not find a "how to" for this." I would love to create this program for my class or half them create it as an extra credit opportunity but would need a key. Can anyone show me/tell me how to create this on SCRATCH?
Thanks to all!
1. A sprite asks for a user name.
2. The sprite will greet the user by name (as entered above)
3. The sprite will ask for a password. The password is “extracredit”
4. Program checks for incorrect password.
If an incorrect password is given, the sprite changes appearance (size and/or special effect/color change)
Using the user’s name, the sprite tells the user the password is incorrect.
Then the sprite goes back to its initial size and appearance
Sprite asks for the password again. IT DOES NOT ASK FOR THE NAME AGAIN.
After three tries with an incorrect password, the sprite will give a final error message using the user’s name and end the program.
5. If the correct password is given, the first sprite disappears and two sprites come out. One sprite tells a knock-knock joke to the second sprite. The second sprite, after being given the punch line to the knock-knock joke, reacts either with a text response or some other way (change of appearance). The program will then end with a message from the first sprite.
Offline
Hello, welcome to Scratch! I hope you enjoy the language as much as I do.
In response to your question:
You need something like:
when gf clicked ask [What's your name?] and wait set [tries v] to [0] repeat until <<answer = [extracredit]> or <tries = (3)>> ask [What's the password?] and wait if <answer = (extracredit)> broadcast [animation v] else broadcast [wrongpassword v]If this script is on the stage, the questions will be a bar at the bottom of the screen. Otherwise, it'll be a dialog box from the sprite.
when I receive [animation v] put the animation code in place of this blockand
when I receive [wrongpassword v] stop allThe coloring isn't perfect, but it shows what to do (more or less)
Last edited by Programmer_112 (2013-03-10 18:43:19)
Offline
Thanks you so much! I really appreciate the help and am loving all of the support here. I am going to give this a try and see how it goes. Will be posting an update
Offline
OK! I look forward to seeing your project! Good luck!
Offline
Pages: 1