Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » generators
- gamecentral_scratch
- Scratcher
14 posts
generators
anyone know how to program a generator, if so, please let me know XD
- MicroMacro
- Scratcher
100+ posts
generators
It really depends on what kind of generator you want. A number generator is easy, because you have this block:
Something like a story or text, I suggest making lists, and using that same “pick random” block to choose a random item number of that list.
(pick random (1) to (10))
Something like a story or text, I suggest making lists, and using that same “pick random” block to choose a random item number of that list.
say (join (join (item (pick random (1) to (10)) of [ Names v]) [is feeling]) (item (pick random (1) to (10)) of [ Feelings v])) for (2) secs
//This is just an example. Use it how you'd like.
Last edited by MicroMacro (Dec. 31, 2014 13:17:56)
- gamecentral_scratch
- Scratcher
14 posts
generators
thanks!! but I couldn't find that red block,is it just me or is it red idk
- Burnout5858
- Scratcher
100+ posts
generators
@gamecentral_scratch
It's a List script. It takes a random emotion and name from the lists.
It's a List script. It takes a random emotion and name from the lists.
I should put something awesome here, but I won't.
- MicroMacro
- Scratcher
100+ posts
generators
The red block is under the Data category. You're going to need to make lists to use that script.
If you don't know what lists are, I suggest you look here: http://wiki.scratch.mit.edu/wiki/Lists
If you don't know what lists are, I suggest you look here: http://wiki.scratch.mit.edu/wiki/Lists
- Discussion Forums
- » Help with Scripts
- » generators