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

#1 2011-04-09 14:38:16

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

An upgrade to broadcasts

Maybe you could instead of needing this:

[broadcast [lalalala]]
[set [data] to (300)]

You could have this:

[broadcast [lalalala] > with args (data)=()]

So you can send broadcasts with an argument(s) to send data-needing arguments

A use:
OSes
You want to make a command line for it. How?
It would need something like this:
[insert line reading script]
[broadcast (line1)]

Which could lead to parameter problems.

Instead....

[insert line reading script]
[broadcast [eval] with arg (line1) = (line1)]

See what i mean?
Any support?

Last edited by bbbeb (2011-04-09 19:47:09)


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

Offline

 

#2 2011-04-09 16:01:02

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

Offline

 

#3 2011-04-09 16:02:42

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: An upgrade to broadcasts

No.


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#4 2011-04-09 16:05:44

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Re: An upgrade to broadcasts

scimonster wrote:

Yes!

kimmy123 wrote:

No.

I wrote:

What?


http://i.imgur.com/QQH4J.gif

Offline

 

#5 2011-04-09 16:06:45

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

Re: An upgrade to broadcasts

kimmy123 wrote:

No.

Why not? I think this could be very useful.

Offline

 

#6 2011-04-09 16:07:39

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: An upgrade to broadcasts

No.

Unless someone explains.

I'm not use to this arg stuff.

Offline

 

#7 2011-04-09 16:12:23

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

Re: An upgrade to broadcasts

kayybee wrote:

No.

Unless someone explains.

I'm not use to this arg stuff.

It is broadcasting with an argument. That way, you don't have to set a variable to a side message of the broadcast. I'm guessing it would need a (broadcast arg) block to read it.

Offline

 

#8 2011-04-09 16:23:28

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: An upgrade to broadcasts

Yeah broadcasts have always been like * versions of user defined functions, which is what I think you are getting at. I think it would be better if current broadcasts were left alone and you could get this functionality with a build your own blocks feature. I don't think anyone would really be opposed to a build your own blocks feature.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer