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

#1 2010-01-03 21:24:12

sweetgames
Scratcher
Registered: 2009-12-22
Posts: 33

Help Me!!!!!!!!!!!!!!!!!!!!!!!

I am making a game where you can type in a question and the sprite will answer it for you. I am trying to find a way so that if someone types in a question it does not know the answer to, it will say: Sorry, I do not know the answer to your question.
This is what the programing looks like:
blocks<if><forever><when green flag clicked>/blocks answer is ---------<say[yes!


I am focusing all of my energy right now onto PinkPanda 2.0! To view the current version, click here: http://scratch.mit.edu/projects/sweetgames/1266202

Offline

 

#2 2010-01-03 21:26:53

sweetgames
Scratcher
Registered: 2009-12-22
Posts: 33

Re: Help Me!!!!!!!!!!!!!!!!!!!!!!!

sorry, i will do that again:
<forever if><when green flag clicked><(answer  <=> do you like pie )><say[ yes

Last edited by sweetgames (2010-01-03 21:27:26)


I am focusing all of my energy right now onto PinkPanda 2.0! To view the current version, click here: http://scratch.mit.edu/projects/sweetgames/1266202

Offline

 

#3 2010-01-03 21:42:35

sweetgames
Scratcher
Registered: 2009-12-22
Posts: 33

Re: Help Me!!!!!!!!!!!!!!!!!!!!!!!

Please Answer!!!!!!!!!!!!!!!!!!!


I am focusing all of my energy right now onto PinkPanda 2.0! To view the current version, click here: http://scratch.mit.edu/projects/sweetgames/1266202

Offline

 

#4 2010-01-03 22:39:49

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Help Me!!!!!!!!!!!!!!!!!!!!!!!

If you were going to have many questions, I would find it easiest to put your questions in a list. Make a list in the variables menu and make every question have a seperate item. Then, use a script like this:

When Green Flag Clicked
Ask "type a question" and wait
If list contains answer
     if answer = do you like pie?
     say "yes" for 2 seconds
Else
Say "I don't know the answer to that question" for 2 seconds

Last edited by shadow_7283 (2010-01-03 22:40:39)

Offline

 

#5 2010-01-03 23:02:18

sweetgames
Scratcher
Registered: 2009-12-22
Posts: 33

Re: Help Me!!!!!!!!!!!!!!!!!!!!!!!

Thanx!


I am focusing all of my energy right now onto PinkPanda 2.0! To view the current version, click here: http://scratch.mit.edu/projects/sweetgames/1266202

Offline

 

#6 2010-01-03 23:19:29

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Help Me!!!!!!!!!!!!!!!!!!!!!!!

Your welcome!  smile

Offline

 

Board footer