Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how do i make a type list in scratch?
- medians
-
Scratcher
1000+ posts
how do i make a type list in scratch?
can you just use the code block things to describe this cuz i didnt get a thing u saidwhat do i define type by ?You click “Options”, and you can select different inputs. In this case, click string/text. You can drag the reporters to use them in the definition, and use the code provided in the link.how do i get type block tho?…Uhm, there are 2 projects linked with the custom block and the code.
https://scratch.mit.edu/projects/830984104/
You can backpack the script and give credit. It's a custom block (More Blocks).

Click string/text input to add this:

You press “ok” to save everything.
You can drag the reporter (the oval shaped things in the define block) to other blocks to use them.
Then, use the code in the project:
define type (string1)
set [string v] to (letter (1) of (string1))
delete (all v) of [typed v]
repeat (length of (string1))
insert (string) at (1 v) of [typed v]
set [string v] to (join (string) (letter ((length of (string)) + (1)) of (string1)))
end
Last edited by medians (April 4, 2023 19:48:19)
- ByakuyaTheDog
-
Scratcher
48 posts
how do i make a type list in scratch?
Well, It’s complicated, Automatic Typing thingy:
define say (text) Text wait Time: (TWT) Wait Time: (WT)
set [ #] to [0]
set [ Text] to []
repeat (length of ( Text))
change [ #] by (1)
say (join ( Text) (letter ( #) of (text)))
set ( Text) to (join [( text)] (letter ( #) of [( text)]))
wait (TWT) secs
end
wait (WT) secs
say []
Last edited by ByakuyaTheDog (April 4, 2023 20:03:50)
- Creatality
-
Scratcher
32 posts
how do i make a type list in scratch?
Like this?
when green flag clicked
ask [Whatever you want] and wait
if <(answer) = [Whatever you want]> then
end
Last edited by Creatality (April 4, 2023 22:34:37)
- Discussion Forums
- » Help with Scripts
-
» how do i make a type list in scratch?


