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

#1 2011-05-01 04:38:23

Igglepiggleandhulk
Scratcher
Registered: 2011-03-26
Posts: 4

If [recieved: new...] block

like the [blocks]<if>[/blocks] block only saying, if you have received this broadcast already, then do this. It should open up a whole new range of possibilites with the broadcasting block.

Offline

 

#2 2011-05-01 09:39:19

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

Re: If [recieved: new...] block

I don't really get how this works; could you explain a little more?

Offline

 

#3 2011-05-01 09:59:23

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

Re: If [recieved: new...] block

scimonster wrote:

I don't really get how this works; could you explain a little more?

They're suggesting the much sought after <I Receive> block, but with the addition that it checks if the broadcast has been received in the past.


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

 

#4 2011-05-01 15:53:12

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: If [recieved: new...] block

you can use this command in 2.0
[when <i receive [sss]>]
[if (sssbroadcasted?)=1]
[](do stuff when its broadcasted here)
[else]
[](do stuff when its not broadcasted here)
[][set (sssbroadcasted?) to 1]
[                    ]


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

Board footer