Discuss Scratch

abrakaidabra
Scratcher
500+ posts

For Each Block

For some reason, the

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)
Travis_isaSigma
Scratcher
100+ posts

For Each Block

abrakaidabra wrote:

For some reason, the

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)
It 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!
abrakaidabra
Scratcher
500+ posts

For Each Block

Travis_isaSigma wrote:

abrakaidabra wrote:

For some reason, the

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)
It 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!
You can still get the block in scratch by backpacking it from another project, search for hacked blocks.
abrakaidabra
Scratcher
500+ posts

For Each Block

Bringing up this topic
-S0dium-
Scratcher
91 posts

For Each Block

abrakaidabra wrote:

Bringing up this topic
What’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

Powered by DjangoBB