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

#1 2012-10-05 10:58:14

Unforgivableblack
New Scratcher
Registered: 2012-10-05
Posts: 5

Lists

I'm creating a list and want the sprite to say all the items in the list at once. can anyone point me towards any tutorials to help me with this.

Offline

 

#2 2012-10-05 11:02:39

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Lists

you can use the block that looks like a red variable and drag it into the speech input


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-10-05 11:17:20

notaloser
Scratcher
Registered: 2011-12-06
Posts: 100+

Re: Lists

Do this:

(after adding the words to the desired list, drag the nameblock of the list and...)


when gf clicked
say (listname) for (2) secs
Or any number of seconds.  big_smile

Last edited by notaloser (2012-10-05 11:17:38)


http://gifs.gifbin.com/1238409599_nom_nom.gifhttp://cdn3.lolzsquad.com/wp-content/uploads/2012/10/Come-here-I-want-to-tell-you-something.-.gif

Offline

 

#4 2012-10-08 08:41:26

Ideas
Scratcher
Registered: 2012-10-07
Posts: 100+

Re: Lists

You could try this

when gf clicked
set [# v] to [0]
repeat (length of [my list v]
say [item (#) of [my list v] for [2] secs
change [# v] by [1]
end


http://img685.imageshack.us/img685/2010/screenshot20121110at132.pngI think that you must CLICK above

Offline

 

#5 2012-10-08 08:44:31

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Lists

Ideas wrote:

You could try this

when gf clicked
set [# v] to [0]
repeat (length of [my list v])
say (item (#) of [my list v]) for (2) secs
change [# v] by [1]
end

Fixed.

Last edited by jontmy00 (2012-10-08 08:46:58)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#6 2012-10-08 09:10:56

transparent
Scratcher
Registered: 2011-04-19
Posts: 1000+

Re: Lists

I think he wants to say all the values at one time.
I'm working on the solution currently...


yes, yes i do.

Offline

 

#7 2012-10-08 22:29:35

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Lists

If you want to add something inbetween each item, you should do this:

when gf clicked
set [# v] to [1]
set [liststring v] to [] //nothing
repeat <length of [listname v]>
set [liststring v] to <join (liststring) <join [whatever text you want] <item (#) of [listname v]>>>
change [# v] by (1)
end
say (liststring)

Offline

 

Board footer