Discuss Scratch

AwesomeDuckYT
Scratcher
51 posts

List Repeat

i need to know how you repeat something fro a list. let me explain:
im making scratch in scratch, and it adds blocks to a list for it to do. how can i make the repeat block work?

if <(item ( v) of [list v] :: list) = [Repeat]> then
???
change [i] by (1)
end
LG125
Scratcher
500+ posts

List Repeat

My theory would be to have the number in the list, then have a variable counting how many times its been repeated and it will continue the script once reached the repeated times.

Too lazy to make scratchblocks rn.
AwesomeDuckYT
Scratcher
51 posts

List Repeat

LG125 wrote:

My theory would be to have the number in the list, then have a variable counting how many times its been repeated and it will continue the script once reached the repeated times.

Too lazy to make scratchblocks rn.

Can you explain this a bit better please? I do not completely understand
actually nvm i do

Last edited by AwesomeDuckYT (Sept. 23, 2021 20:38:33)

Powered by DjangoBB