Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Writing/Type Projects
- CandyMeowRuff
-
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?
For example:
A person types the word apple.
Apple shows on the project. How to do that?
- Sil3nci0
-
1000+ 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?
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 clickedMake 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.
forever
if <(answer) = [apple]> then
Show
end
end
We also need all the code to be inside the apple so that it works.
Hope this helps!
-Sil3nci0
- Discussion Forums
- » Help with Scripts
-
» Writing/Type Projects