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

#1 2011-07-19 16:35:47

princeeric
Scratcher
Registered: 2009-04-18
Posts: 2

When { } Broadcasted/Received

<switch to costume[ I think that Scratch 2.0 should have a When { } Broadcasted/Received. It has something happen after you broadcast or receive a message.  smile

So do it and I'll be as cool as a cucumber!  cool

Offline

 

#2 2011-07-20 03:30:34

xmagicx60
Scratcher
Registered: 2011-07-15
Posts: 30

Re: When { } Broadcasted/Received

princeeric wrote:

<switch to costume[ I think that Scratch 2.0 should have a When { } Broadcasted/Received. It has something happen after you broadcast or receive a message.  smile

So do it and I'll be as cool as a cucumber!  cool

+1

Yea, we really need this. I get tired of having to workaround it.

Offline

 

#3 2011-07-20 03:41:50

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Offline

 

#4 2011-07-20 05:18:59

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: When { } Broadcasted/Received

scratch 2.0 needs byob 2.0 like things teh first class objects rest can be self made  wink


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#5 2011-07-20 08:15:03

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: When { } Broadcasted/Received

The block you seem to be suggesting is already in Scratch: the "When I receive ___" hat block. (See scimonster's post for an image of the block.) When ever a given broadcast is sent out, the scripts under the corresponding "when I receive" block(s) will activate. For example.

Code:

sprite1's script:

when green flag clicked
Forever if touching sprite1
     Broadcast contact


Stage's script:

When I receive contact
Change background

http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2011-07-20 08:36:00

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

I think they mean a normal block, as to fit into a script without making variables etc

Offline

 

#7 2011-07-20 11:07:53

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When { } Broadcasted/Received

Oh, so you mean <recieved?>


Posts: 20000 - Show all posts

Offline

 

#8 2011-07-21 01:00:37

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

veggieman001 wrote:

Oh, so you mean <recieved?>

wait until [broadcast] received

Offline

 

#9 2011-07-21 01:04:44

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When { } Broadcasted/Received

When Broadcast Received is the same thing.


Posts: 20000 - Show all posts

Offline

 

#10 2011-07-21 01:19:13

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

veggieman001 wrote:

When Broadcast Received is the same thing.

yes but that goes at the top of the script

Offline

 

#11 2011-07-21 01:19:59

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When { } Broadcasted/Received

I don't see why you would need it otherwise.


Posts: 20000 - Show all posts

Offline

 

#12 2011-07-21 01:22:32

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

for a lot of things, I've needed it once or twice

Offline

 

#13 2011-07-21 02:01:40

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: When { } Broadcasted/Received

Example?


Posts: 20000 - Show all posts

Offline

 

#14 2011-07-21 02:04:06

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: When { } Broadcasted/Received

veggieman001 wrote:

Example?

I needed it... can't remember how many times! Anyway, here's the link to the suggestion


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#15 2011-07-21 02:23:34

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

veggieman001 wrote:

Example?

how old are you? like 10? your logic is really bad.

Offline

 

#16 2011-07-21 09:08:07

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: When { } Broadcasted/Received

jji7skyline wrote:

veggieman001 wrote:

Example?

I needed it... can't remember how many times! Anyway, here's the link to the suggestion

There have actually been quite a few times that I would have found this useful too, and unlike a <broadcast received> boolean, I can't see any technical reason it couldn't be done. I think it's a good idea, assuming that's what OP was talking about.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#17 2011-07-21 09:13:14

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: When { } Broadcasted/Received

guys, just use variables.


the the the the the

Offline

 

#18 2011-07-21 18:48:14

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

jslomba wrote:

guys, just use variables.

they're annoying as you end up with over 40 just to do stuff which shouldn't need them

Offline

 

#19 2011-07-21 19:37:37

puppetadventurer
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: When { } Broadcasted/Received

my-chemical-romance wrote:

veggieman001 wrote:

Example?

how old are you? like 10? your logic is really bad.

He's 13 I think.

And he is one of those people who think that they should completely remove broadcast blocks :c


3

Offline

 

#20 2011-07-21 22:01:46

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

puppetadventurer wrote:

my-chemical-romance wrote:

veggieman001 wrote:

Example?

how old are you? like 10? your logic is really bad.

He's 13 I think.

And he is one of those people who think that they should completely remove broadcast blocks :c

I'm 14 and my logic makes sense to loads of people, also I don't disagree with everything someone says.

Offline

 

#21 2011-07-22 11:52:50

silentslayer7
Scratcher
Registered: 2011-06-05
Posts: 100+

Re: When { } Broadcasted/Received

<when I receive[
<switch to costume[
tada

Last edited by silentslayer7 (2011-07-22 11:55:56)


http://i51.tinypic.com/dzcwpe.gif Silentslayer7: Curator from Oct. 24 to Nov. 7

Offline

 

#22 2011-07-27 14:00:07

my-chemical-romance
Scratcher
Registered: 2011-04-24
Posts: 1000+

Re: When { } Broadcasted/Received

silentslayer7 wrote:

<when I receive[
<switch to costume[
tada

Can you not read? We don't want another hat block, jesus.

Offline

 

#23 2011-07-27 14:04:02

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: When { } Broadcasted/Received

puppetadventurer wrote:

my-chemical-romance wrote:

veggieman001 wrote:

Example?

how old are you? like 10? your logic is really bad.

He's 13 I think.

And he is one of those people who think that they should completely remove broadcast blocks :c

You only think your brother is 13?
Why remove them, veggie?

Offline

 

#24 2011-07-27 14:25:32

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: When { } Broadcasted/Received

guys, a broadcast is an event, not a condition. it would only be true for less than a millisecond.

but scratch COULD have a [broadcast and save [ ]] and a (last saved broadcast) block. that way, you could do

<when green flag clicked>
<repeat until><( last saved broadcast <=> stop )>
<move( 10 )steps>
<next costume>
<end>

Last edited by jslomba (2011-07-27 14:26:01)


the the the the the

Offline

 

Board footer