Discuss Scratch
- Discussion Forums
- » Suggestions
- » green flag clicked? block
- 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
Edit: Ninja'd
Last edited by Futurebot5 (Dec. 10, 2020 16:56:43)
- sathvikrias
-
Scratcher
500+ posts
green flag clicked? block
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 clickedis 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:
But there's a really easy workaround:
when gf clickedSo no support anyways.
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
- dertermenter
-
Scratcher
1000+ posts
green flag clicked? block
Why would this be beneficial to scratch?
no support
no support
- NanoPIex
-
Scratcher
500+ 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.No support because:
But there's a really easy workaround:when gf clickedSo no support anyways.
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
when green flag clickedand the above workaround.
set [flagged v] to [1]
Last edited by NanoPIex (Dec. 18, 2020 13:15:39)
- sathvikrias
-
Scratcher
500+ 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.oh ok I did not think of that (scratch team please close this topis)
But there's a really easy workaround:when gf clickedSo no support anyways.
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
- ScratchCatHELLO
-
Scratcher
1000+ posts
green flag clicked? block
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
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.oh ok I did not think of that (scratch team please close this topis)
But there's a really easy workaround:when gf clickedSo no support anyways.
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
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
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.when gf clicked
set [flagged? v] to [1]
when [space v] key pressed
if <(flagged?) = [1]> then
... :: looks
end
- Discussion Forums
- » Suggestions
-
» green flag clicked? block