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

#1 2012-06-16 02:36:53

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

New recieve blocks ideas

The first idea I had was this.

when I recieve <[]and[]>
scripts
Basically this script has to wait until it recieves two things. This is not possible in scratch 1.4. If it is possible in scratch 2.0 please tell me.

Offline

 

#2 2012-06-16 02:54:15

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: New recieve blocks ideas

It is possible using this workaround.

when I receive [broadcast 1 v]
set [A v] to [true]
stop script
when I receive [broadcast 2 v]
set [B v] to [true]
stop script
when I receive [check v]
if <<(A) = [true]> and <(B) = [true]>>
scripts
end
stop script


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-06-16 03:16:16

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: New recieve blocks ideas

That would hardly ever be true, as broadcasts only take a fraction of a second.


Why

Offline

 

#4 2012-06-16 04:11:53

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: New recieve blocks ideas

He means the hat block, he just spelt "receive" wrong. The workaround is this:

when i receive [something v]
broadcast [somethingelse v]
when i receive [somethingelse v]
scripts


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5 2012-06-16 04:16:32

stor
Scratcher
Registered: 2010-02-16
Posts: 1000+

Re: New recieve blocks ideas

JH1010 wrote:

The first idea I had was this.

when I recieve <[]and[]>
scripts
Basically this script has to wait until it recieves two things. This is not possible in scratch 1.4. If it is possible in scratch 2.0 please tell me.

Yeah, I get annoyed that you can't do that.


http://i49.tinypic.com/symb8z.jpg

Offline

 

#6 2012-06-16 04:21:55

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: New recieve blocks ideas

joefarebrother wrote:

He means the hat block, he just spelt "receive" wrong. The workaround is this:

when i receive [something v]
broadcast [somethingelse v]
when i receive [somethingelse v]
scripts

No, that's not right.

JH1010 wrote:

Basically this script has to wait until it recieves two things.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#7 2012-06-16 09:35:54

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: New recieve blocks ideas

what if there was this block

<I receive []>
Which could be used like this:

when gf is clicked
forever if <I receive <[]and[]>>
scripts
end

Offline

 

Board footer