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

#1 2009-06-30 16:46:27

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Lists

I have some questions:
Is there any way to add somethng to a list once without stopping the script
And is there any way to hide a list?

Thanks!


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#2 2009-06-30 16:51:02

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Lists

No way to hide a list with blocks, but see my list hide/show for ideas.
And you can add stuff to lists...

Offline

 

#3 2009-06-30 17:01:21

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Lists

Well what i mean is let's say you had this (and it applies for variables too):
[blocks]
<when green flag clicked>
<forever if><touching[ something ]
<change{ variable }by( 1 )) (or add something to list)
<end>
[/blocks]

It will add that this forever because of the forever if. I've tried a lot of options such as putting a waiting block at the end, or waiting until something happens, but I want to know if there is another way.


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#4 2009-06-30 17:22:34

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Lists

If its is supposed to happen once per touch, put " wait until < not ( touching ( something ) ) > inside the loop after the change variable command.

Last edited by Mayhem (2009-06-30 17:23:29)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#5 2009-06-30 18:05:36

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Lists

Thank you! Now I can begin working on my project again!


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

Board footer