Discuss Scratch

soarroying
Scratcher
500+ posts

{} or {} hat block

GabrielBoms wrote:

soarroying wrote:

(#14)

fireincarnate wrote:

I still like having the minimum amount of scripts in my sprites, even if it means having a giant script.
Same, but this suggestion has a legit workaround
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
cool
Yeah ik
soarroying
Scratcher
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
Scratcher
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
Scratcher
500+ posts

{} or {} hat block

GabrielBoms wrote:

when (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat

(credit to soarroying)
You could also do
when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
GabrielBoms
Scratcher
100+ posts

{} or {} hat block

soarroying wrote:

(#24)

GabrielBoms wrote:

when (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat

(credit to soarroying)
You could also do
when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
correction for ‘'xor’': or


when (when green flag clicked :: hat) [or v] (when [1 v] key pressed :: hat) :: operators hat
mrrecordman
Scratcher
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
Scratcher
500+ posts

{} or {} hat block

GabrielBoms wrote:

soarroying wrote:

(#24)

GabrielBoms wrote:

when (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat

(credit to soarroying)
You could also do
when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
correction for ‘'xor’': xor


when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
xor is true if one statment is true and the other one is false.
mrrecordman
Scratcher
1000+ posts

{} or {} hat block

soarroying wrote:

GabrielBoms wrote:

soarroying wrote:

(#24)

GabrielBoms wrote:

when (when green flag clicked :: hat) [and v] (when [1 v] key pressed :: hat) :: operators hat

(credit to soarroying)
You could also do
when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
correction for ‘'xor’': xor


when (when green flag clicked :: hat) [xor v] (when [1 v] key pressed :: hat) :: operators hat
xor is true if one statment is true and the other one is false.
Is your autocorrect broken!

Sorry if it’s offtopic.
Plasmoxxie
Scratcher
66 posts

{} or {} hat block

Why did everyone ignore this much simpler concept?
do this [when space key pressed v] or [when green flag clicked v]::events hat
It'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
Scratcher
1000+ posts

{} or {} hat block

Plasmoxxie wrote:

Why did everyone ignore this much simpler concept?
do this [when space key pressed v] or [when green flag clicked v]::events hat
It'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?
Good idea, but a better block might be:
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
Scratcher
66 posts

{} or {} hat block

soarroying wrote:

Plasmoxxie wrote:

Why did everyone ignore this much simpler concept?
do this [when space key pressed v] or [when green flag clicked v]::events hat
It'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?
Fixed mockup:
do this [when space key pressed v] or [when green flag clicked v] :: operators hat
How is that fixed? You just made it green.
soarroying
Scratcher
500+ posts

{} or {} hat block

Plasmoxxie wrote:

soarroying wrote:

Plasmoxxie wrote:

Why did everyone ignore this much simpler concept?
do this [when space key pressed v] or [when green flag clicked v]::events hat
It'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?
Fixed mockup:
do this [when space key pressed v] or [when green flag clicked v] :: operators hat
How is that fixed? You just made it green.
It should be operators
Plasmoxxie
Scratcher
66 posts

{} or {} hat block

soarroying wrote:

It should be operators
That doesn't really make sense, as every hat block that would work for this is in the Events category.
Besides, the only hat block NOT in the events category is
when I start as a clone
soarroying
Scratcher
500+ posts

{} or {} hat block

Plasmoxxie wrote:

soarroying wrote:

It should be operators
That doesn't really make sense, as every hat block that would work for this is in the Events category.
Besides, the only hat block NOT in the events category is
when I start as a clone
You're forgetting the new extension hats introduced in 3.0
when [shaken v] :: pen
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 I forgot the rest of them, so yeah.
Plasmoxxie
Scratcher
66 posts

{} or {} hat block

soarroying wrote:

Plasmoxxie wrote:

soarroying wrote:

It should be operators
That doesn't really make sense, as every hat block that would work for this is in the Events category.
Besides, the only hat block NOT in the events category is
when I start as a clone
You're forgetting the new extension hats introduced in 3.0
when [shaken v] :: pen
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 I forgot the rest of them, so yeah.
Extension hat blocks can't be in this anyway, as you would have to add them. Blocks like this can't just… change.
And before you argue about things like
when I receive [ v]

or...
when backdrop switches to [ v]
those both require you to create something, and they are also much simpler.
soarroying
Scratcher
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 hat
I personally think there should be a dropdown containing or, and, and xor.
soarroying
Scratcher
500+ posts

{} or {} hat block

Plasmoxxie wrote:

Why did everyone ignore this much simpler concept?
do this [when space key pressed v] or [when green flag clicked v]::events hat
It'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?
Maybe you could add a hat to the dropdown and it sets it to it!
sussy_baka1234567890
Scratcher
38 posts

{} or {} hat block

HighFlyer222 wrote:

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
no it wont! It would be cleaner to use than the workaround
soarroying
Scratcher
500+ posts

{} or {} hat block

sussy_baka1234567890 wrote:

HighFlyer222 wrote:

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
no it wont! It would be cleaner to use than the workaround
But the workaround works just fine.
EX hat :: hat
Workaround
EX hat :: hat
Workaround
define Workaround
repeat ()
EX block
end
soarroying
Scratcher
500+ posts

{} or {} hat block

k0d3rrr wrote:

Plasmoxxie wrote:

Why did everyone ignore this much simpler concept?
do this [when space key pressed v] or [when green flag clicked v]::events hat
It'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?
Good idea, but a better block might be:
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
Or, it could be…
when [green flag clicked v] or [space key pressed v] @delInput @addInput :: control hat

Last edited by soarroying (May 4, 2022 12:14:06)

Powered by DjangoBB