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

#1 2009-06-22 19:09:39

Imic
Scratcher
Registered: 2009-04-26
Posts: 500+

New Block

I think that this block could make scratch allot easier- <when I recieve__>
It would be more usful because instead of making a variable for [repeat until <variable 1=__>] you could just do [repeat until <i recieve__>] or, [if <I recive__>] That would be cool to add to scratch 1.5

Offline

 

#2 2009-06-23 08:25:41

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: New Block

hmmm...just use variables for now.

Offline

 

#3 2009-06-23 10:05:00

ScratchScripter
Scratcher
Registered: 2008-08-21
Posts: 73

Re: New Block

<I recieve [ ] > will never exist unless the Scratch team change [broadcast [ ] ] to [broadcast for (2) secs].

Let me explain it by the "long" method with variables.
To do something like this block, you have to use this script:

< when I receive[ message] >
[set variable [ recieved? ] to (1)]
[wait (2) secs]
[set variable [ recieved? ] to (0)]

[ repeat until < ( recieved? ) = (1) > ]
...

A < > block has to be boolean (1 or 0). Messages are not boolean as long as they can't be 1 or 0.
If the block is changed by the scratch team to [broadcast for (2) secs], it is boolean as it is 1 for 2 seconds and then is set back to 0. The number of seconds equals the [wait ( ) secs]-block in the example above.

Offline

 

#4 2009-06-23 10:13:23

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: New Block

Many people want this block, to make this work you would need:
[Broad cast |Hello!| for (1) seconds]

Offline

 

#5 2009-06-23 10:31:35

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: New Block

Just repeat broadcast 10 times I think is a second.

Offline

 

#6 2009-06-23 23:13:12

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: New Block

Hmm.. I didn't know that.

Offline

 

Board footer