Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » For Each Block
- abrakaidabra
-
Scratcher
500+ posts
For Each Block
For some reason, the
block has lists available in the dropdown as well. When I tried running the code with a list in the dropdown to test it, the project crashed. When I reopened the project, the custom block definition that I had put the for each block in had disappeared, but the custom block remained in the “my blocks” section, even when I reloaded the page. Does anyone know why this happened or how lists in the for each block are supposed to function? (I didn't want to put this in the bugs and glitches forum because this is a hacked block, not an official scratch block)
for each [i v] in (10){
} :: controlblock has lists available in the dropdown as well. When I tried running the code with a list in the dropdown to test it, the project crashed. When I reopened the project, the custom block definition that I had put the for each block in had disappeared, but the custom block remained in the “my blocks” section, even when I reloaded the page. Does anyone know why this happened or how lists in the for each block are supposed to function? (I didn't want to put this in the bugs and glitches forum because this is a hacked block, not an official scratch block)
- Travis_isaSigma
-
Scratcher
100+ posts
For Each Block
For some reason, theIt was in scratch 2 alpha (I think) and I was able to recreate it and when I went to project page all the code got deleted!for each [i v] in (10){
} :: control
block has lists available in the dropdown as well. When I tried running the code with a list in the dropdown to test it, the project crashed. When I reopened the project, the custom block definition that I had put the for each block in had disappeared, but the custom block remained in the “my blocks” section, even when I reloaded the page. Does anyone know why this happened or how lists in the for each block are supposed to function? (I didn't want to put this in the bugs and glitches forum because this is a hacked block, not an official scratch block)
- abrakaidabra
-
Scratcher
500+ posts
For Each Block
You can still get the block in scratch by backpacking it from another project, search for hacked blocks.For some reason, theIt was in scratch 2 alpha (I think) and I was able to recreate it and when I went to project page all the code got deleted!for each [i v] in (10){
} :: control
block has lists available in the dropdown as well. When I tried running the code with a list in the dropdown to test it, the project crashed. When I reopened the project, the custom block definition that I had put the for each block in had disappeared, but the custom block remained in the “my blocks” section, even when I reloaded the page. Does anyone know why this happened or how lists in the for each block are supposed to function? (I didn't want to put this in the bugs and glitches forum because this is a hacked block, not an official scratch block)
- -S0dium-
-
Scratcher
91 posts
For Each Block
Bringing up this topicWhat’s a BUTT lol, I only know of BUMP
- nembence
-
Scratcher
1000+ posts
For Each Block
It probably includes lists by accident, if you select a list it will replace the Array object inside the list with a number, and the list monitor expects an array-ish thing so it crashes when it tries to display it
- Discussion Forums
- » Advanced Topics
-
» For Each Block