There are several new blocks that most of the Scratch community wants. Here they are:
[Hide(LIST)]
[Show(LIST)]
<(within(__)of(SPRITE)>
<(LIST)contains word(_____)>
[Insert all of(LIST)at(__)of(LIST2)]
If anyone has any other ideas for blocks to add, please post them.
Offline
hmnwilson wrote:
The-Whiz wrote:
<(LIST)contains word(_____)>
That block is in the 1.4 beta.
No, the one in 1.4 release Candidate is <(LIST)contains(_____)>. The difference is the the one in Scratch 1.4 only says true if a line of a list is exactly that. My suggestion tells if there is a WORD anywhere in that list.
Offline
how about
[blocks]
<forever if>
<else>
<end>
or
<forever>
<else>
<end>
[/blocks]
Offline
MariowiiX wrote:
how about
[blocks]
<forever if>
<else>
<end>
or
<forever>
<else>
<end>
[/blocks]
just use this:
<forever>
<if>
<else>
<end>
<end>
Offline
<stop scripts until>
Then you could make a good pause.
Offline
Hide/Show Lists: try something like this for now:
http://scratch.mit.edu/projects/Roberth/5731
Within ( ) of ( ): What should it do?
List contains word/phrase ( ): use something like this: (set each item of the list to the variable, detect, repeat...
http://scratch.mit.edu/projects/bhz/565724
Insert all of ( ) at ( ) of ( ): just insert each item individually.
< shown/hidden >: use variables
I like all of the suggestions...I'm just saying it CAN be done (even if it takes a long time for detection/etc)
Offline
<hidden>
<visible>
(costume name)
[Wait until I receive [message]]
[Broadcast [message] to [sprite]]
<mouse idle?>
(idle time) keeps track of how long the mouse has been idle
<(#)≠(#)>
Offline
Macintoshface wrote:
<hidden>
<visible>
(costume name)
[Wait until I receive [message]]
[Broadcast [message] to [sprite]]
<mouse idle?>
(idle time) keeps track of how long the mouse has been idle
<(#)=/ #)>
[/blocks]
< hidden > and < shown >:
shown =
hidden =
wait until I receive:
wait until I receive [ message ] =
< mouse idle > and ( idle time ):
make a 3x3 dummy-sprite...place these scripts in it
< mouse idle > =
Last edited by bhz (2009-06-15 06:51:19)
Offline
You may want to look at this: http://scratch.mit.edu/projects/TheoMarr/570457 . Also, if you make or create your own block in System Browser that could make a block
Last edited by TheoMarr (2009-06-15 02:06:37)
Offline
The-Whiz wrote:
There are several new blocks that most of the Scratch community wants. Here they are:
[Hide(LIST)]
[Show(LIST)]
<(within(__)of(SPRITE)>
<(LIST)contains word(_____)>
[Insert all of(LIST)at(__)of(LIST2)]
If anyone has any other ideas for blocks to add, please post them.
With the [Insert all of (LIST) at (__) of (LIST2)], do you mean it would be a list that is inserted, or a concatenated list as a string being inserted? Because that would call for multidimensional lists, which I really want, and that would call for even more blocks. I'm not sure I understand the <(within(__)of(SPRITE), though.
Offline
The-Whiz wrote:
There are several new blocks that most of the Scratch community wants. Here they are:
[Hide(LIST)]
[Show(LIST)]
<(within(__)of(SPRITE)>
<(LIST)contains word(_____)>
[Insert all of(LIST)at(__)of(LIST2)]
If anyone has any other ideas for blocks to add, please post them.
Markyparky wrote:
These are brilliant ideas, yet the scratch team WILL NOT DO THEM for some reason. iv'e asked them about a stop all scripts on this sprite, and they said yeah, and the beta scratch 1.4 DOESN'T HAVE IT!
Offline
coolstuff wrote:
The-Whiz wrote:
There are several new blocks that most of the Scratch community wants. Here they are:
[Hide(LIST)]
[Show(LIST)]
<(within(__)of(SPRITE)>
<(LIST)contains word(_____)>
[Insert all of(LIST)at(__)of(LIST2)]
If anyone has any other ideas for blocks to add, please post them.With the [Insert all of (LIST) at (__) of (LIST2)], do you mean it would be a list that is inserted, or a concatenated list as a string being inserted? Because that would call for multidimensional lists, which I really want, and that would call for even more blocks. I'm not sure I understand the <(within(__)of(SPRITE), though.
I think he means something like this:
I have a list that has { A, B, C }
I want to insert that list at position 2 in { D, E, F }
the end result will look like { D, A, B, C, E, F }
The Whiz, is that what you are looking for?
I don't really get the within ( ) of sprite either...
Offline
bhz wrote:
coolstuff wrote:
The-Whiz wrote:
There are several new blocks that most of the Scratch community wants. Here they are:
[Hide(LIST)]
[Show(LIST)]
<(within(__)of(SPRITE)>
<(LIST)contains word(_____)>
[Insert all of(LIST)at(__)of(LIST2)]
If anyone has any other ideas for blocks to add, please post them.With the [Insert all of (LIST) at (__) of (LIST2)], do you mean it would be a list that is inserted, or a concatenated list as a string being inserted? Because that would call for multidimensional lists, which I really want, and that would call for even more blocks. I'm not sure I understand the <(within(__)of(SPRITE), though.
I think he means something like this:
I have a list that has { A, B, C }
I want to insert that list at position 2 in { D, E, F }
the end result will look like { D, A, B, C, E, F }
The Whiz, is that what you are looking for?
I don't really get the within ( ) of sprite either...
I see. Well, you can do it now.
Offline
I want one that looks like this, <broadcast[pie]> but instead of "broadcast", it says "when I receive".
Last edited by aweman (2009-06-18 20:14:57)
Offline
bhz wrote:
Macintoshface wrote:
<hidden>
<visible>
(costume name)
[Wait until I receive [message]]
[Broadcast [message] to [sprite]]
<mouse idle?>
(idle time) keeps track of how long the mouse has been idle
<(#)=/ #)>[/blocks]
< hidden > and < shown >:
http://img7.imageshack.us/img7/1171/91353933.gif
shown = http://img197.imageshack.us/img197/9830/51741215.gif
hidden = http://img199.imageshack.us/img199/5444/87253086.gif
wait until I receive:
http://img141.imageshack.us/img141/3737/74744972.gif
wait until I receive [ messagi ] = http://img199.imageshack.us/img199/1747/18177768.gif
< mouse idle > and ( idle time ):
make a 3x3 dummy-sprite...place these scripts in it
http://img514.imageshack.us/img514/6480/90386769.gif
< mouse idle > = http://img197.imageshack.us/img197/7262/57921715.gif
how do you get those blocks
<change x by(stupidness)>
Offline
bhz wrote:
Macintoshface wrote:
<hidden>
<visible>
(costume name)
[Wait until I receive [message]]
[Broadcast [message] to [sprite]]
<mouse idle?>
(idle time) keeps track of how long the mouse has been idle
<(#)=/ #)>[/blocks]
< hidden > and < shown >:
http://img7.imageshack.us/img7/1171/91353933.gif
shown = http://img197.imageshack.us/img197/9830/51741215.gif
hidden = http://img199.imageshack.us/img199/5444/87253086.gif
wait until I receive:
http://img141.imageshack.us/img141/3737/74744972.gif
wait until I receive [ message ] = http://img199.imageshack.us/img199/1747/18177768.gif
< mouse idle > and ( idle time ):
make a 3x3 dummy-sprite...place these scripts in it
http://img514.imageshack.us/img514/6480/90386769.gif
< mouse idle > = http://img197.imageshack.us/img197/7262/57921715.gif
WATS mouse idle?
Offline
I don't really know about this stuff- I dont really use those blocks, and I have to admit, I'm not that good at Scratch ye,. I still have to learn
Offline