This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-10 18:23:01

passionforteaching
New Scratcher
Registered: 2013-03-10
Posts: 4

New & would really appreciate some help w/ SCRATCH program that does:

-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

 

#2 2013-03-10 18:41:12

Programmer_112
Scratcher
Registered: 2012-02-17
Posts: 100+

Re: New & would really appreciate some help w/ SCRATCH program that does:

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.
Also, you need these on both sprites that do the comedy routine:
when I receive [animation v]
put the animation code in place of this block
and
when I receive [wrongpassword v]
stop all
The coloring isn't perfect, but it shows what to do (more or less)

Last edited by Programmer_112 (2013-03-10 18:43:19)


http://i49.tinypic.com/rk60py.png

Offline

 

#3 2013-03-10 18:46:17

passionforteaching
New Scratcher
Registered: 2013-03-10
Posts: 4

Re: New & would really appreciate some help w/ SCRATCH program that does:

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  smile

Offline

 

#4 2013-03-10 18:59:09

Programmer_112
Scratcher
Registered: 2012-02-17
Posts: 100+

Re: New & would really appreciate some help w/ SCRATCH program that does:

OK!  I look forward to seeing your project!  Good luck!


http://i49.tinypic.com/rk60py.png

Offline

 

Board footer