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

#1 2008-06-27 16:39:56

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Why only broadcast to all sprites?

I would like to know what are the reasons behind the fact that the only current mechanism to send messages is the

broadcast <X>

that sends a message to all sprites. Are there efficiency reasons behind this? Are there simplicity reasons? Why is there no mechanism such as

Send message <X> to <Y>?

Thanks for any clarification

Offline

 

#2 2008-06-27 16:41:40

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Why only broadcast to all sprites?

s_federici wrote:

I would like to know what are the reasons behind the fact that the only current mechanism to send messages is the

broadcast <X>

that sends a message to all sprites. Are there efficiency reasons behind this? Are there simplicity reasons? Why is there no mechanism such as

Send message <X> to <Y>?

Thanks for any clarification

That would be helpful, but technically, not all of the sprites have to receive it. yet I know it would make those complicated games easier if they didn't have to go through those long lists of broadcasts. You can also use variables?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-06-27 18:38:31

ScipioBellorum
Scratcher
Registered: 2007-05-15
Posts: 94

Re: Why only broadcast to all sprites?

But then you'd have to go through a long list of variables (which are even worse than broadcasts becuase they each have their own Change by X and Set to X blocks as well).

I think broadcasts are specifically designed to message to all sprites hence the term 'broadcast' whereas variables are more specific, especially when you use the reference for non-global variables. I still think it would be much easier if you could group variables together in folders or hide the extra blocks that way you could make more without having to worry about spending ages looking for a single variable.

SB


http://img393.imageshack.us/img393/339/logory8.png
                      The word processor for Scratch

Offline

 

Board footer