Discuss Scratch

sathvikrias
Scratcher
500+ posts

green flag clicked? block

title is self explanatory.
@greenFlag green flag clicked? :: sensing boolean

//or

@greenFlag green flag clicked? :: events boolean
zHmonster
Scratcher
100+ posts

green flag clicked? block

You couldn't activate this block without the green flag being clicked in the first place.
Futurebot5
Scratcher
1000+ posts

green flag clicked? block

No support, the boolean wouldn't even check if the green flag wasn't clicked, so this block is useless.

Edit: Ninja'd

Last edited by Futurebot5 (Dec. 10, 2020 16:56:43)

sathvikrias
Scratcher
500+ posts

green flag clicked? block

zHmonster wrote:

You couldn't activate this block without the green flag being clicked in the first place.
?
GachaN0nsense
Scratcher
500+ posts

green flag clicked? block

first of all, the
when green flag clicked
is good enough, why would we need sensing blocks for it? Scripts can't run without you pressing the Green Flag in the first place.
IndianRuby718
Scratcher
100+ posts

green flag clicked? block

hehe everyone is forgetting that you could use one of the other hats that could be true before you hit the green flag; especially "when [space v] key pressed". You might want to prevent a script under one of the other hat blocks from running before you've even started the project.

But there's a really easy workaround:
when gf clicked 
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
So no support anyways.
dertermenter
Scratcher
1000+ posts

green flag clicked? block

Why would this be beneficial to scratch?




no support
NanoPIex
Scratcher
500+ posts

green flag clicked? block

IndianRuby718 wrote:

hehe everyone is forgetting that you could use one of the other hats that could be true before you hit the green flag; especially "when [space v] key pressed". You might want to prevent a script under one of the other hat blocks from running before you've even started the project.

But there's a really easy workaround:
when gf clicked 
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
So no support anyways.
No support because:
when green flag clicked
set [flagged v] to [1]
and the above workaround.

Last edited by NanoPIex (Dec. 18, 2020 13:15:39)

sathvikrias
Scratcher
500+ posts

green flag clicked? block

IndianRuby718 wrote:

hehe everyone is forgetting that you could use one of the other hats that could be true before you hit the green flag; especially "when [space v] key pressed". You might want to prevent a script under one of the other hat blocks from running before you've even started the project.

But there's a really easy workaround:
when gf clicked 
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
So no support anyways.
oh ok I did not think of that (scratch team please close this topis)
ScratchCatHELLO
Scratcher
1000+ posts

green flag clicked? block

sathvikrias wrote:

zHmonster wrote:

You couldn't activate this block without the green flag being clicked in the first place.
?

The green flag must have been clicked for this boolean to function, as nothing (except trickery with the timer) can run without the green flag being clicked.
ScratchCatHELLO
Scratcher
1000+ posts

green flag clicked? block

sathvikrias wrote:

IndianRuby718 wrote:

hehe everyone is forgetting that you could use one of the other hats that could be true before you hit the green flag; especially "when [space v] key pressed". You might want to prevent a script under one of the other hat blocks from running before you've even started the project.

But there's a really easy workaround:
when gf clicked 
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
So no support anyways.
oh ok I did not think of that (scratch team please close this topis)

There should be a button that lets you close the topic. If not, I can report this to be closed.
IndianRuby718
Scratcher
100+ posts

green flag clicked? block

IndianRuby718 wrote:

when gf clicked 
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
And one more thing, make sure the variable is at 0 when opening the project. To make sure it's at 0 when stopping the project you can use the workaround for “when stop sign clicked”. That one's in the sticky for workarounds.

Powered by DjangoBB