Discuss Scratch

CandyMeowRuff
Scratcher
17 posts

Writing/Type Projects

Hi, how do you make it so the person can type?
For example:
A person types the word apple.
Apple shows on the project. How to do that?
Sil3nci0
Scratcher
1000+ posts

Writing/Type Projects

CandyMeowRuff wrote:

Hi, how do you make it so the person can type?
For example:
A person types the word apple.
Apple shows on the project. How to do that?

Its actually simple,
You can ask the user to type in the word, like this (i added the hide so that the apple cant be seen):

when green flag clicked
Hide
ask [Please type in the word apple] and wait

And if the user types in the correct word, we can do this:
when green flag clicked
forever
if <(answer) = [apple]> then
Show
end
end
Make sure the if else statement is in the forever loop as it is only checked once if there is no forever loop and we dont want that.
We also need all the code to be inside the apple so that it works.
Hope this helps!

-Sil3nci0

Powered by DjangoBB