Discuss Scratch
- Discussion Forums
- » Suggestions
- » Broadcast and add blocks
- raisinr
- Scratcher
100+ posts
Broadcast and add blocks
First, you should delete the broadcast blocks.
And you should add this
when I receive [ message1 v]:: EventsWhy? Because you can do a lot more with making your own blocks.
broadcast [ message1 v]:: Events
broadcast [ message1 v] and wait:: Events
define Your block:: customThe block you make is the ‘broadcast’ block, and the ‘define’ block is the ‘when i receive’ block.
Your block:: custom
And you should add this
add [variable v]. Name:[variable name]:: grayThe other thing on the drop-down list would be list, making the block look like this:
add [list v]. Name:[list name]:: grayThe 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):: grayI haven't figured that part out yet.
(join (username) ['s to do list)
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 [] :: variablesNo 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.
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 clickedExecuting 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.
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
- 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.
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
Problem is, there's already hacked blocks for it. So your point is moot. 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 clickedExecuting 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.
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
- 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
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
Problem is, there's already hacked blocks for it. So your point is moot. 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 clickedExecuting 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.
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
What block do i make to do it? 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
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.
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
Hello! Just sayin, you can kind of already crash the scratch player already. 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 clickedExecuting 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.
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Oh and read https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/212098/
- The4thPixel
- Scratcher
1000+ posts
Broadcast and add blocks
True, but adding this would make it a lot easier.Hello! Just sayin, you can kind of already crash the scratch player already. 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 clickedExecuting 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.
set [Spam v] to [1]
forever
create variable ((Spam) + (1)) :: variables
end
Oh and read https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/212098/
- raisinr
- Scratcher
100+ 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.You're right. i was thinking about a project i was making that only had one sprite. Why would messages be removed? They have a very helpful purpose of communication between sprites.
No Support. Custom blocks can only communicate within a sprite, broadcasts can contact other sprites.But, maybe a
define Your block:: customcan 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
Well, what if this happens? 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):: grayI haven't figured that part out yet.
(join (username) ['s to do list)
- 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
Unless that block's purposes are being replaced by a more commonly used block, or another good reason. But I do agree with you. you shouldn't really suggest blocks to go away.
- raisinr
- Scratcher
100+ posts
Broadcast and add blocks
Unless that block's purposes are being replaced by a more commonly used block, or another good reason. But I do agree with you. you shouldn't really suggest blocks to go away.
First, you should delete the broadcast blocks.when I receive [ message1 v]:: EventsWhy? Because you can do a lot more with making your own blocks.
broadcast [ message1 v]:: Events
broadcast [ message1 v] and wait:: Eventsdefine Your block:: customThe block you make is the ‘broadcast’ block, and the ‘define’ block is the ‘when i receive’ block.
Your block:: custom
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.
Why would messages be removed? They have a very helpful purpose of communication between sprites.
No Support. Custom blocks can only communicate within a sprite, broadcasts can contact other sprites.But, maybe a
define Your block:: customcan appear on each sprite when you make a block and
Your Block:: customcan 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
I still want to know.Well, what if this happens? 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):: grayI haven't figured that part out yet.
(join (username) ['s to do list)
- 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.
- Discussion Forums
- » Suggestions
- » Broadcast and add blocks