Discuss Scratch

Basketbomb
Scratcher
47 posts

Why are blocks that are in scratch not shown on the blocks bar?

I know about this after I used Turbowarp to bring the While block into Scratch, and, I'm wondering, if it's already coded in, why isn't it shown?
CST1229
Scratcher
1000+ posts

Why are blocks that are in scratch not shown on the blocks bar?

Most of those blocks exist just for compatibility with a few versions that did have the block, but was then later removed.

As for the reason the “while” block was removed: This is pure speculation, but it might have been replaced with “repeat until” due to it possibly confusing users? Like say, they'd try something like
whenclickedwhilekeyspacepressed?move10steps
and expect that to work like this script:
whenclickedforeverifkeyspacepressed?thenmove10steps
(which it doesn't, and then users might get confused and think their script/the block doesn't work)

Last edited by CST1229 (Dec. 29, 2024 00:09:16)

scratchcode1_2_3
Scratcher
1000+ posts

Why are blocks that are in scratch not shown on the blocks bar?

CST1229 wrote:

Most of those blocks exist just for compatibility with a few versions that did have the block, but was then later removed.

As for the reason the “while” block was removed: This is pure speculation, but it might have been replaced with “repeat until” due to it possibly confusing users? Like say, they'd try something like
whenclickedwhilekeyspacepressed?move10steps
and expect that to work like this script:
whenclickedforeverifkeyspacepressed?thenmove10steps
(which it doesn't, and then users might get confused and think their script/the block doesn't work)
But the repeat until block isn't the whole block?
I'm pretty sure it DOES work like that.

Oh and theres also counter blocks, for each () in (), and a when this sprite touches block
BigNate469
Scratcher
1000+ posts

Why are blocks that are in scratch not shown on the blocks bar?

scratchcode1_2_3 wrote:

I'm pretty sure it DOES work like that.
It doesn't.
whenclickedwhilekeyspacepressed?move10steps
would work like
whenclickedifkeyspacepressed?thenrepeatuntilnotkeyspacepressed?move10steps
Note: the if-statement is technically unnecessary, but this example would be somewhat confusing otherwise.

Last edited by BigNate469 (Dec. 29, 2024 00:40:16)

scratchcode1_2_3
Scratcher
1000+ posts

Why are blocks that are in scratch not shown on the blocks bar?

BigNate469 wrote:

scratchcode1_2_3 wrote:

I'm pretty sure it DOES work like that.
It doesn't.
whenclickedwhilekeyspacepressed?move10steps
would work like
whenclickedifkeyspacepressed?thenrepeatuntilnotkeyspacepressed?move10steps
Note: the if-statement is technically unnecessary, but this example would be somewhat confusing otherwise.
Oh, well still pretty similar
BigNate469
Scratcher
1000+ posts

Why are blocks that are in scratch not shown on the blocks bar?

scratchcode1_2_3 wrote:

BigNate469 wrote:

snip
Oh, well still pretty similar
Well, the major differences are that the while block one blocks code execution underneath it until you lift your finger off the space key, and only looks once if you're touching the space key, so unless you're holding space while you are clicking the flag, you're unlikely to get it to do anything.

Last edited by BigNate469 (Dec. 29, 2024 01:43:08)

scratchcode1_2_3
Scratcher
1000+ posts

Why are blocks that are in scratch not shown on the blocks bar?

BigNate469 wrote:

(#6)

scratchcode1_2_3 wrote:

BigNate469 wrote:

snip
Oh, well still pretty similar
Well, the major differences are that the while block one blocks code execution underneath it until you lift your finger off the space key, and only looks once if you're touching the space key, so unless you're holding space while you are clicking the flag, you're unlikely to get it to do anything.
huh so it's also
ifconditionthenforever. . . codeifnotconditionthenstopthis script

Powered by DjangoBB