Discuss Scratch
- soarroying
-
500+ posts
{} or {} hat block
Yeah ik(#14)coolSame, but this suggestion has a legit workaround I still like having the minimum amount of scripts in my sprites, even if it means having a giant script.when green flag clicked
whatever you want here :: custom
when [space v] key pressed
whatever you want here :: custom
define whatever you want here
A script :: #284
- soarroying
-
500+ posts
{} or {} hat block
My mockup:
when (when green flag clicked :: hat) [or v] (when [space v] key pressed :: hat) :: operators hat
Last edited by soarroying (April 24, 2022 13:38:30)
- GabrielBoms
-
100+ posts
{} or {} hat block
when (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat
(credit to soarroying)
- soarroying
-
500+ posts
{} or {} hat block
You could also dowhen (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat
(credit to soarroying)
when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
- GabrielBoms
-
100+ posts
{} or {} hat block
(#24)correction for ‘'xor’': orYou could also dowhen (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat
(credit to soarroying)when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
when (when green flag clicked :: hat) [or v] (when [1 v] key pressed :: hat) :: operators hat
- mrrecordman
-
1000+ posts
{} or {} hat block
no support. this breaks the hat blocks because hat blocks are not supposed to go into other hat blocks. also the frequently mentioned workaround also works just fine.
EG hat block :: hat
workaround
when I receive [egample v]
workaround
define workaround
EG block
another EG block to represent script :: events
if <EG boolean: (EG number/text input) = (example)?> then
EG block
end
- soarroying
-
500+ posts
{} or {} hat block
xor is true if one statment is true and the other one is false.(#24)correction for ‘'xor’': xorYou could also dowhen (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat
(credit to soarroying)when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hatwhen (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
- mrrecordman
-
1000+ posts
{} or {} hat block
Is your autocorrect broken!xor is true if one statment is true and the other one is false.(#24)correction for ‘'xor’': xorYou could also dowhen (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat
(credit to soarroying)when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hatwhen (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
Sorry if it’s offtopic.
- Plasmoxxie
-
66 posts
{} or {} hat block
Why did everyone ignore this much simpler concept?
Does this not make sense?
do this [when space key pressed v] or [when green flag clicked v]::events hatIt's simple enough for new users to tell what it does, and it doesn't use block stacking in any way whatsoever.
Does this not make sense?
- k0d3rrr
-
1000+ posts
{} or {} hat block
Good idea, but a better block might be: Why did everyone ignore this much simpler concept?do this [when space key pressed v] or [when green flag clicked v]::events hatIt's simple enough for new users to tell what it does, and it doesn't use block stacking in any way whatsoever.
Does this not make sense?
when [green flag clicked v] or [space key pressed v] @delInput @addInput :: events hat
// Or:
when [green flag clicked v] or [space key pressed v] @delInput @addInput :: operators hat
Last edited by k0d3rrr (April 24, 2022 14:36:20)
- Plasmoxxie
-
66 posts
{} or {} hat block
How is that fixed? You just made it green.Fixed mockup: Why did everyone ignore this much simpler concept?do this [when space key pressed v] or [when green flag clicked v]::events hatIt's simple enough for new users to tell what it does, and it doesn't use block stacking in any way whatsoever.
Does this not make sense?do this [when space key pressed v] or [when green flag clicked v] :: operators hat
- soarroying
-
500+ posts
{} or {} hat block
It should be operatorsHow is that fixed? You just made it green.Fixed mockup: Why did everyone ignore this much simpler concept?do this [when space key pressed v] or [when green flag clicked v]::events hatIt's simple enough for new users to tell what it does, and it doesn't use block stacking in any way whatsoever.
Does this not make sense?do this [when space key pressed v] or [when green flag clicked v] :: operators hat
- Plasmoxxie
-
66 posts
{} or {} hat block
That doesn't really make sense, as every hat block that would work for this is in the Events category. It should be operators
Besides, the only hat block NOT in the events category is
when I start as a clone
- soarroying
-
500+ posts
{} or {} hat block
You're forgetting the new extension hats introduced in 3.0That doesn't really make sense, as every hat block that would work for this is in the Events category. It should be operators
Besides, the only hat block NOT in the events category iswhen I start as a clone
when [shaken v] :: penAnd I forgot the rest of them, so yeah.
when () :: pen
when button ( v) pressed :: pen hat
when ( v) key pressed :: pen
when ( v) pressed in order :: pen hat
when titled () :: pen hat
- Plasmoxxie
-
66 posts
{} or {} hat block
Extension hat blocks can't be in this anyway, as you would have to add them. Blocks like this can't just… change.You're forgetting the new extension hats introduced in 3.0That doesn't really make sense, as every hat block that would work for this is in the Events category. It should be operators
Besides, the only hat block NOT in the events category iswhen I start as a clonewhen [shaken v] :: penAnd I forgot the rest of them, so yeah.
when () :: pen
when button ( v) pressed :: pen hat
when ( v) key pressed :: pen
when ( v) pressed in order :: pen hat
when titled () :: pen hat
And before you argue about things like
when I receive [ v]those both require you to create something, and they are also much simpler.
or...
when backdrop switches to [ v]
- soarroying
-
500+ posts
{} or {} hat block
I personally think this should be in operators, like this:
when (when green flag clicked :: hat) [or v] (when [space v] key pressed :: hat) do :: operators hatI personally think there should be a dropdown containing or, and, and xor.
- soarroying
-
500+ posts
{} or {} hat block
Maybe you could add a hat to the dropdown and it sets it to it! Why did everyone ignore this much simpler concept?do this [when space key pressed v] or [when green flag clicked v]::events hatIt's simple enough for new users to tell what it does, and it doesn't use block stacking in any way whatsoever.
Does this not make sense?
- sussy_baka1234567890
-
38 posts
{} or {} hat block
no it wont! It would be cleaner to use than the workaround No support. This would confuse most of new Scratchers, and in my opinion, block inputs (the one you suggested, putting a block inside another block) don't fit well with Scratch. Also there must also be something like this i this gets implemented: (I think)(hat 1::events hat) and (hat 2::events hat)::extension hat
- soarroying
-
500+ posts
{} or {} hat block
But the workaround works just fine.no it wont! It would be cleaner to use than the workaround No support. This would confuse most of new Scratchers, and in my opinion, block inputs (the one you suggested, putting a block inside another block) don't fit well with Scratch. Also there must also be something like this i this gets implemented: (I think)(hat 1::events hat) and (hat 2::events hat)::extension hat
EX hat :: hat
Workaround
EX hat :: hat
Workaround
define Workaround
repeat ()
EX block
end
- soarroying
-
500+ posts
{} or {} hat block
Or, it could be…Good idea, but a better block might be: Why did everyone ignore this much simpler concept?do this [when space key pressed v] or [when green flag clicked v]::events hatIt's simple enough for new users to tell what it does, and it doesn't use block stacking in any way whatsoever.
Does this not make sense?when [green flag clicked v] or [space key pressed v] @delInput @addInput :: events hat
// Or:
when [green flag clicked v] or [space key pressed v] @delInput @addInput :: operators hat
when [green flag clicked v] or [space key pressed v] @delInput @addInput :: control hat
Last edited by soarroying (May 4, 2022 12:14:06)