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

#1 2010-05-01 10:55:22

Aelic7
Scratcher
Registered: 2009-08-24
Posts: 22

'When I receive' hexagonal block

I really think that there should be a Sensing block that says 'I receive ____'. That would make it easier to do 1 script projects, i.e. you could say 'wait until I recieve (game over)' or something like that. You could also say 'if I recieve (Jump) change y by 10' or something like that. It would help me a lot. Please post your opinions!

Offline

 

#2 2010-05-02 14:19:42

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: 'When I receive' hexagonal block

It would be very useful. I just wish that 50% of everyone wouldn't think it's impossible.

Offline

 

#3 2010-05-02 14:53:54

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: 'When I receive' hexagonal block

BWOG wrote:

It would be very useful. I just wish that 50% of everyone wouldn't think it's impossible.

It's not possible. Diamond-shaped blocks must be boolean. <When I recieve> is not. For example, [if <when I recieve> = 1] wouldn't work. When I recieve can't be True or False only, its answers are not true or false. <I am recieving> would work, though.

However, I would propose there to be [wait until I recieve] and [repeat until I recieve]. For now, however, you can just use variables to have the same effect.

Offline

 

#4 2010-05-02 14:58:46

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: 'When I receive' hexagonal block

coolstuff wrote:

BWOG wrote:

It would be very useful. I just wish that 50% of everyone wouldn't think it's impossible.

It's not possible. Diamond-shaped blocks must be boolean. <When I recieve> is not. For example, [if <when I recieve> = 1] wouldn't work. When I recieve can't be True or False only, its answers are not true or false. <I am recieving> would work, though.

However, I would propose there to be [wait until I recieve] and [repeat until I recieve]. For now, however, you can just use variables to have the same effect.

*bangs head on keyboard*

It IS possible, because booleans are either true or false.

Offline

 

#5 2010-05-02 15:01:07

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: 'When I receive' hexagonal block

BWOG wrote:

coolstuff wrote:

BWOG wrote:

It would be very useful. I just wish that 50% of everyone wouldn't think it's impossible.

It's not possible. Diamond-shaped blocks must be boolean. <When I recieve> is not. For example, [if <when I recieve> = 1] wouldn't work. When I recieve can't be True or False only, its answers are not true or false. <I am recieving> would work, though.

However, I would propose there to be [wait until I recieve] and [repeat until I recieve]. For now, however, you can just use variables to have the same effect.

*bangs head on keyboard*

It IS possible, because booleans are either true or false.

I am aware. When I recieve is not true or false. I am recieving is.

FOR EXAMPLE. A logical conversation:

When did I recieve this? 12:16 PM. Is that true or false? Didn't think so!
Am I recieving this? Yes! That is true or false.

Offline

 

#6 2010-05-02 19:23:10

Aelic7
Scratcher
Registered: 2009-08-24
Posts: 22

Re: 'When I receive' hexagonal block

coolstuff wrote:

BWOG wrote:

It would be very useful. I just wish that 50% of everyone wouldn't think it's impossible.

It's not possible. Diamond-shaped blocks must be boolean. <When I recieve> is not. For example, [if <when I recieve> = 1] wouldn't work. When I recieve can't be True or False only, its answers are not true or false. <I am recieving> would work, though.

However, I would propose there to be [wait until I recieve] and [repeat until I recieve]. For now, however, you can just use variables to have the same effect.

It doesn't need to be grammar-perfect, I was just making a suggestion. Also, it's not going to be [if <when I receive> = 1], it's [if <when I receive> (jump)] or something like that.

Also, variables are not the same. Broadcasting and receiving something happens once; It gets broadcasted and received in an instant. Variables, however, are conditional; the variable must be a certain number in order for the script to work. Once it doesn't, the script doesn't work anymore.

Anyway, the block I'm suggesting would just make things easier. It's not going to revolutionize Scratch, it's just something that would help me.

Last edited by Aelic7 (2010-05-02 19:23:35)

Offline

 

#7 2010-05-02 21:46:05

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: 'When I receive' hexagonal block

for starters, it would help them understand than using varibles, which only recently i understood.

Last edited by laser100 (2010-05-02 21:47:11)

Offline

 

#8 2010-05-02 22:03:12

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: 'When I receive' hexagonal block

I have been expierementing with <i recive []> with the source code and cannot think of a way to build it, but coolstuffs idea <recieving []> may be just what you need


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#9 2010-05-02 22:06:59

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: 'When I receive' hexagonal block

midnightleopard wrote:

I have been expierementing with <i recive []> with the source code and cannot think of a way to build it, but coolstuffs idea <recieving []> may be just what you need

I've made the block, but no functionality. all it says is ().

Offline

 

#10 2010-05-03 18:58:43

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: 'When I receive' hexagonal block

laser100 wrote:

midnightleopard wrote:

I have been expierementing with <i recive []> with the source code and cannot think of a way to build it, but coolstuffs idea <recieving []> may be just what you need

I've made the block, but no functionality. all it says is ().

made which block? ('recieve %s' #- #-) doesn't work. It has no method.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#11 2010-05-03 19:26:25

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: 'When I receive' hexagonal block

You can do this with a variable...


-End Transmission-

Offline

 

#12 2010-05-03 19:34:34

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: 'When I receive' hexagonal block

It should be (to BWOG and coolstuff) <when broadcasting [fdfa\/]> That way, it is either True or False.


Hai.

Offline

 

#13 2010-05-03 19:36:21

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: 'When I receive' hexagonal block

You can make it in BYOB, too.


It's always fun to pioneer a block!


-End Transmission-

Offline

 

Board footer