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

#1 2010-05-06 03:14:23

Jesa_lan
Scratcher
Registered: 2010-05-06
Posts: 1

The interaction "writing"?

In our program we want an option that allows the user to search for a keyword in a little searchmachine. We want that our backgrounds open themselves by an interaction, so if the user writes a keyword in the searchmachine, which is found in one of the backgrounds, this one will open and the user can see the content of this background. But we do not know, how we can make ist possible that the user can write in our problem and we are not sure how we can make the program find the keywords on one of the backgrounds.
We would be happy, if here is someone who can help us  wink

Gesa & Jenny

Offline

 

#2 2010-05-06 03:28:08

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: The interaction "writing"?

From what I understand, you want to make it so that when the user types something in it changes backgrounds, depending on what they typed in?

The easiest way to do that is to use the "ask" block in the Sensing category. It puts a text box at the bottom of the screen that the user can type text into, and stores it in the "answer" block. Then you can make it check to see if the answer is a certain word, and if it is, it switches to a certain background.

Does that help?

Last edited by hmnwilson (2010-05-06 03:33:12)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-05-06 15:48:40

Ratty1967UK
Scratcher
Registered: 2007-05-16
Posts: 88

Re: The interaction "writing"?

you could do it all with a list... here's a little demo project...

http://scratch.mit.edu/projects/Ratty1967UK/1032135

Offline

 

Board footer