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

#1 2013-01-26 14:41:17

dusty22
Scratcher
Registered: 2012-09-28
Posts: 49

Adding sprites to a list...

Is there anyway to sort of, add sprites to a list?

Like instead of saying: if touching [block1 or block2 or block3 or block4]
I add blocks 1-4 to list "blocks".
Then I say: if touching [blocks] and get the same effect? So far it didn't work when I just added the sprites names to a list, then put the name of the list in the touching [ ] field.

Offline

 

#2 2013-01-26 14:59:51

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: Adding sprites to a list...

Yes. Just add the name of the sprite to the list and then when you want to use it use item [# where sprite is] of [list]

See this example, download to see the code:

Link to Project

Last edited by Smozzick (2013-01-26 15:03:10)


http://i50.tinypic.com/ded8m.png

Offline

 

#3 2013-01-27 09:38:01

dusty22
Scratcher
Registered: 2012-09-28
Posts: 49

Re: Adding sprites to a list...

Thank you!

Offline

 

Board footer