Discuss Scratch

RENZOYGRECIA
Scratcher
100+ posts

Put the while block in the block palette

no is false
repeat until <not <condition>>
function
end
i no do gray how to make this
horizontal_shading
Scratcher
1000+ posts

Put the while block in the block palette

RENZOYGRECIA wrote:

no is false
repeat until <not <condition>>
function
end
i no do gray how to make this
Please don't necropost, but I support

Last edited by horizontal_shading (Feb. 9, 2024 03:19:18)

medians
Scratcher
1000+ posts

Put the while block in the block palette

medians wrote:

medians wrote:

medians wrote:

DangerPuppy10
Scratcher
1000+ posts

Put the while block in the block palette

medians wrote:

medians wrote:

medians wrote:

medians wrote:

A yes, people writing nothing is just AMAZING!
medians
Scratcher
1000+ posts

Put the while block in the block palette

DangerPuppy10 wrote:

medians wrote:

medians wrote:

medians wrote:

medians wrote:

A yes, people writing nothing is just AMAZING!
It is meant to be a cubeupload image for bringing topics up but cubeupload is being dumb xD

Last edited by medians (Feb. 24, 2024 15:34:06)

RENZOYGRECIA
Scratcher
100+ posts

Put the while block in the block palette

medians wrote:

mumu245 wrote:

medians wrote:

That was their point, and it's one block.
It was a joke, to demonstrate that using workarounds isn't always ok.
Uhm did you mean to quote the person that i quoted
Please follow me
RethinkingVoxels
Scratcher
1000+ posts

Put the while block in the block palette

RENZOYGRECIA wrote:

medians wrote:

mumu245 wrote:

medians wrote:

That was their point, and it's one block.
It was a joke, to demonstrate that using workarounds isn't always ok.
Uhm did you mean to quote the person that i quoted
Please follow me
PDAISF
Please Don't Advertise In Scratch Forums
hotcrystal
Scratcher
500+ posts

Put the while block in the block palette

Sorry to necropost, but I support this because many programming languages have a while loop, and so this block should be added back to the block palette, even though it functions the same as repeat until not.
medians
Scratcher
1000+ posts

Put the while block in the block palette

duckboycool wrote:

They removed it since it was useless, like forever if. Two block workarounds do not need to warrant a block.

The workarounds work fine and are so simple.
In case anyone is wondering, forever if was removed because of the fact that it was confusing, not because of the workaround.

Roblox888i wrote:

Lets remove:

move () steps

Because:

change x by ()
How does this have to do with the suggestion though?
Also, move () steps moves based on direction.

hotcrystal wrote:

Sorry to necropost, but I support this because many programming languages have a while loop, and so this block should be added back to the block palette, even though it functions the same as repeat until not.
This wouldn't be considered necroposting, since the suggestion is still relevant now, and hasn't been implemented.
mumu245
Scratcher
1000+ posts

Put the while block in the block palette

medians wrote:

(#129)
Also, move () steps moves based on direction.

Yeah, you'd need trigonometry to do that yourself.
hotcrystal
Scratcher
500+ posts

Put the while block in the block palette

Bump.
RENZOYGRECIA
Scratcher
100+ posts

Put the while block in the block palette

While

end
bubgamer07
Scratcher
100+ posts

Put the while block in the block palette

RENZOYGRECIA wrote:

while <> {
}:: control
(i fixed it for you)

i find it ironic that scratch has the repeat until block instead of the while block while in most languages it's reversed
hotcrystal
Scratcher
500+ posts

Put the while block in the block palette

bubgamer07 wrote:

i find it ironic that scratch has the repeat until block instead of the while block while in most languages it's reversed
Scratch is supposed to be a programming language for beginners, so it should have functions that match ones in other programming languages. It’s a good thing that the while block even exists and is fully functional.
hotcrystal
Scratcher
500+ posts

Put the while block in the block palette

Bump?
CST1229
Scratcher
1000+ posts

Put the while block in the block palette

I feel like the reason the while block isn't in the block palette is because it might slightly confuse new users about control flow; as in they'd try to make a script like
when flag clicked
while <mouse down?> {
move (10) steps
} :: control
and then question why their sprite isn't moving when they release and hold the mouse button (because the block does not repeat forever). “repeat until not”, meanwhile, would be very clear in this case.

Just my thoughts.

Last edited by CST1229 (June 16, 2025 19:54:50)

gilbert_given_189
Scratcher
1000+ posts

Put the while block in the block palette

CST1229 wrote:

I feel like the reason the while block isn't in the block palette is because it might slightly confuse new users about control flow; as in they'd try to make a script like
when flag clicked
while <mouse down?> {
move (10) steps
} :: control
and then question why their sprite isn't moving when they release and hold the mouse button (because the block does not repeat forever). “repeat until not”, meanwhile, would be very clear in this case.

Just my thoughts.
How about rephrasing the block to `repeat while <>`?
CST1229
Scratcher
1000+ posts

Put the while block in the block palette

gilbert_given_189 wrote:

(#137)

CST1229 wrote:

I feel like the reason the while block isn't in the block palette is because it might slightly confuse new users about control flow; as in they'd try to make a script like
when flag clicked
while <mouse down?> {
move (10) steps
} :: control
and then question why their sprite isn't moving when they release and hold the mouse button (because the block does not repeat forever). “repeat until not”, meanwhile, would be very clear in this case.

Just my thoughts.
How about rephrasing the block to `repeat while <>`?
might work
hotcrystal
Scratcher
500+ posts

Put the while block in the block palette

Powered by DjangoBB