Discuss Scratch

raisinr
Scratcher
100+ posts

Broadcast and add blocks

First, you should delete the broadcast blocks.
when I receive [ message1 v]:: Events
broadcast [ message1 v]:: Events
broadcast [ message1 v] and wait:: Events
Why? Because you can do a lot more with making your own blocks.
define Your block:: custom
Your block:: custom
The block you make is the ‘broadcast’ block, and the ‘define’ block is the ‘when i receive’ block.

And you should add this
add [variable v]. Name:[variable name]:: gray
The other thing on the drop-down list would be list, making the block look like this:
add [list v]. Name:[list name]:: gray
The block will add a list or variable, and there should be a way to have blocks for that list or variable, but what if the block adds a list or variable that is named raisinr's to do list:
add [list v]. Name:(join (username) ['s to do list):: gray
(join (username) ['s to do list)
I haven't figured that part out yet.

Last edited by raisinr (Sept. 12, 2016 18:43:30)

Ceo_
Scratcher
500+ posts

Broadcast and add blocks

Remove Broadcast:
No support, how do you want that Sprite 1 broadcasts to Sprite 2 of do something ?
Custom blocks are only working on their sprite.
add [variable v] with name [] :: variables
No support, if we do:

when green flag clicked
forever
add [variable v] with name [LOL YOUR HAPPY NOW] :: variables
end
The4thPixel
Scratcher
1000+ posts

Broadcast and add blocks

My reactions to all the suggestions listed in the OP:

1. Why would messages be removed? They have a very helpful purpose of communication between sprites.
2. Making “add variables/lists” shouldn't be added because they would be abused, easily.
when green flag clicked
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Executing this script would crash the Scratch player, and/or the browser used to open the project. You could also do the same thing with an “add list” block.
awesome-llama
Scratcher
1000+ posts

Broadcast and add blocks

No Support. Custom blocks can only communicate within a sprite, broadcasts can contact other sprites.

You can also create variables before, instead of having blocks to create variables while the project is running. If those blocks were going to be added, other blocks would have to be made/changed, like setting the variables and deleting them.
braxbroscratcher
Scratcher
1000+ posts

Broadcast and add blocks

The4thPixel wrote:

My reactions to all the suggestions listed in the OP:

1. Why would messages be removed? They have a very helpful purpose of communication between sprites.
2. Making “add variables/lists” shouldn't be added because they would be abused, easily.
when green flag clicked
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Executing this script would crash the Scratch player, and/or the browser used to open the project. You could also do the same thing with an “add list” block.
Problem is, there's already hacked blocks for it. So your point is moot.
Sigton
Scratcher
1000+ posts

Broadcast and add blocks

With hacks you can create this block; and it's a simple hack at that
Just be careful not to recursively create variables; it doesn't end well, trust me, I've tried ;P

Sigton
raisinr
Scratcher
100+ posts

Broadcast and add blocks

braxbroscratcher wrote:

The4thPixel wrote:

My reactions to all the suggestions listed in the OP:

1. Why would messages be removed? They have a very helpful purpose of communication between sprites.
2. Making “add variables/lists” shouldn't be added because they would be abused, easily.
when green flag clicked
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Executing this script would crash the Scratch player, and/or the browser used to open the project. You could also do the same thing with an “add list” block.
Problem is, there's already hacked blocks for it. So your point is moot.

Sigton wrote:

With hacks you can create this block; and it's a simple hack at that
Just be careful not to recursively create variables; it doesn't end well, trust me, I've tried ;P

Sigton
What block do i make to do it?
raisinr
Scratcher
100+ posts

Broadcast and add blocks

Ceo_ wrote:

Remove Broadcast:
No support, how do you want that Sprite 1 broadcasts to Sprite 2 of do something ?
Custom blocks are only working on their sprite.

The4thPixel wrote:

My reactions to all the suggestions listed in the OP:
1. Why would messages be removed? They have a very helpful purpose of communication between sprites.

You're right. i was thinking about a project i was making that only had one sprite.

Last edited by raisinr (Sept. 14, 2016 14:17:59)

woodchester50
Scratcher
60 posts

Broadcast and add blocks

The4thPixel wrote:

My reactions to all the suggestions listed in the OP:

1. Why would messages be removed? They have a very helpful purpose of communication between sprites.
2. Making “add variables/lists” shouldn't be added because they would be abused, easily.
when green flag clicked
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Executing this script would crash the Scratch player, and/or the browser used to open the project. You could also do the same thing with an “add list” block.
Hello! Just sayin, you can kind of already crash the scratch player already.
Oh and read https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/212098/
The4thPixel
Scratcher
1000+ posts

Broadcast and add blocks

woodchester50 wrote:

The4thPixel wrote:

My reactions to all the suggestions listed in the OP:

1. Why would messages be removed? They have a very helpful purpose of communication between sprites.
2. Making “add variables/lists” shouldn't be added because they would be abused, easily.
when green flag clicked
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Executing this script would crash the Scratch player, and/or the browser used to open the project. You could also do the same thing with an “add list” block.
Hello! Just sayin, you can kind of already crash the scratch player already.
Oh and read https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/212098/
True, but adding this would make it a lot easier.
raisinr
Scratcher
100+ posts

Broadcast and add blocks

raisinr wrote:

Ceo_ wrote:

Remove Broadcast:
No support, how do you want that Sprite 1 broadcasts to Sprite 2 of do something ?
Custom blocks are only working on their sprite.

The4thPixel wrote:

Why would messages be removed? They have a very helpful purpose of communication between sprites.
You're right. i was thinking about a project i was making that only had one sprite.

awesome-llama wrote:

No Support. Custom blocks can only communicate within a sprite, broadcasts can contact other sprites.
But, maybe a
define Your block:: custom
can appear on each sprite when you make a block and the block you make can appear on all sprites' ‘Make a block’ list.
raisinr
Scratcher
100+ posts

Broadcast and add blocks

raisinr wrote:

The block will add a list or variable, and there should be a way to have blocks for that list or variable, but what if the block adds a list or variable that is named raisinr's to do list:
add [list v]. Name:(join (username) ['s to do list):: gray
(join (username) ['s to do list)
I haven't figured that part out yet.
Well, what if this happens?
edward789121
Scratcher
500+ posts

Broadcast and add blocks

you shouldn't really suggest blocks to go away.
The4thPixel
Scratcher
1000+ posts

Broadcast and add blocks

edward789121 wrote:

you shouldn't really suggest blocks to go away.
Unless that block's purposes are being replaced by a more commonly used block, or another good reason. But I do agree with you.
raisinr
Scratcher
100+ posts

Broadcast and add blocks

The4thPixel wrote:

edward789121 wrote:

you shouldn't really suggest blocks to go away.
Unless that block's purposes are being replaced by a more commonly used block, or another good reason. But I do agree with you.

raisinr wrote:

First, you should delete the broadcast blocks.
when I receive [ message1 v]:: Events
broadcast [ message1 v]:: Events
broadcast [ message1 v] and wait:: Events
Why? Because you can do a lot more with making your own blocks.
define Your block:: custom
Your block:: custom
The block you make is the ‘broadcast’ block, and the ‘define’ block is the ‘when i receive’ block.

Ceo_ wrote:

Remove Broadcast:
No support, how do you want that Sprite 1 broadcasts to Sprite 2 of do something ?
Custom blocks are only working on their sprite.

The4thPixel wrote:

Why would messages be removed? They have a very helpful purpose of communication between sprites.

awesome-llama wrote:

No Support. Custom blocks can only communicate within a sprite, broadcasts can contact other sprites.
But, maybe a
define Your block:: custom
can appear on each sprite when you make a block and
Your Block:: custom
can appear on all sprites' ‘Make a block’ list.
o. k.? I think this is a good reason.

Last edited by raisinr (Sept. 15, 2016 13:50:35)

raisinr
Scratcher
100+ posts

Broadcast and add blocks

raisinr wrote:

raisinr wrote:

The block will add a list or variable, and there should be a way to have blocks for that list or variable, but what if the block adds a list or variable that is named raisinr's to do list:
add [list v]. Name:(join (username) ['s to do list):: gray
(join (username) ['s to do list)
I haven't figured that part out yet.
Well, what if this happens?
I still want to know.
Ninkancho
Scratcher
500+ posts

Broadcast and add blocks

Why supersede something that isn't broken with something that could be? Custom blocks are the Scratch analogue of custom procedures or functions, while broadcasts encourage event-driven programming in an object-oriented environment and are the easiest method of switching program flow between sprites. They're vastly different concepts. Replacing one with the other wouldn't make sense to me. And if broadcasts had to be replaced by anything, it would preferably be global variables, not custom blocks.

Powered by DjangoBB