Discuss Scratch
- Discussion Forums
- » Suggestions
- » when stop sign clicked block
- adsuri
- Scratcher
1000+ posts
when stop sign clicked block
It would be similar to the when gfl clicked block.
when stop clicked :: events hat
Last edited by adsuri (Aug. 6, 2018 15:11:38)
H He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu
Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr
- TheAdriCoolManDude
- Scratcher
1000+ posts
when stop sign clicked block
23: When stop sign clicked:
The stop sign is designed to stop all scripts in the project, and having more scripts start when the project is stopped could defeat the purpose of that. It potentially could be confusing for the “stop all” block as well.
Last edited by TheAdriCoolManDude (Aug. 6, 2018 15:14:04)
- adsuri
- Scratcher
1000+ posts
when stop sign clicked block
Oh yea oops I didn't think about that.23: When stop sign clicked:
The stop sign is designed to stop all scripts in the project, and having more scripts start when the project is stopped could defeat the purpose of that. It potentially could be confusing for the “stop all” block as well.
Last edited by adsuri (Aug. 6, 2018 15:15:05)
H He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu
Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr
- TheAdriCoolManDude
- Scratcher
1000+ posts
when stop sign clicked block
Yeah, you read the list of rejected suggestions.Oh yea oops I didn't think about that.23: When stop sign clicked:
The stop sign is designed to stop all scripts in the project, and having more scripts start when the project is stopped could defeat the purpose of that. It potentially could be confusing for the “stop all” block as well.
- PineappleDonuts
- Scratcher
77 posts
when stop sign clicked block
It's rejected, but somebody should make a mod on that!!! It would be similar to the when gfl clicked block.when stop clicked :: events hat
- space_elephant
- Scratcher
500+ posts
when stop sign clicked block
when gf clickedit will also trigger on stop all blocks though
forever
set [days since 2000 + v] to ((days since 2000) + (0.000001157407))
end
when [timer v] > (((1) / <(days since 2000)> (days since 2000 +)>) - (2))
broadcast[stop sign clicked v]
forever
set [days since 2000 + v] to ((days since 2000) + (0.000001157407))
end
- TheAdriCoolManDude
- Scratcher
1000+ posts
when stop sign clicked block
What are all these blocks?when gf clickedit will also trigger on stop all blocks though
forever
set [days since 2000 + v] to ((days since 2000) + (0.000001157407))
end
when [timer v] > (((1) / <(days since 2000)> (days since 2000 +)>) - (2))
broadcast[stop sign clicked v]
forever
set [days since 2000 + v] to ((days since 2000) + (0.000001157407))
end
- LionHeart70
- Scratcher
1000+ posts
when stop sign clicked block
No support, as I said in my rejected suggestions list:
23: When stop sign clicked:
The stop sign is designed to stop all scripts in the project, and having more scripts start when the project is stopped could defeat the purpose of that. It potentially could be confusing for the “stop all” block as well.
lh70 / nora/tobi / she-they pronouns / pansexual-demisexual / 14 / sagittarius / furry / artist / intp / stop-motion films / lbp / fall out boy / panic! at the disco / twenty one pilots / stranger things / a series of unfortunate events
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
- Sheep_maker
- Scratcher
1000+ posts
when stop sign clicked block
It's a slightly complicated but universal workaround; here's a simpler workaround that most people know:What are all these blocks?...it will also trigger on stop all blocks though
when gf clickedAs long as the project is running, the timer will never get to 1 second because it's constantly being reset. However, when the project stops, the forever loop stops running, allowing the timer to continue past 1 second, triggering the when timer > _ block. (lag can also trigger the script)
forever
reset timer
end
when [timer v] > (1)
... // project has stopped
space_elephant's workaround is independent of the timer, so it won't break other timer-reliant scripts; they also shortened the delay to the smallest amount so that the project doesn't wait an entire second before realising that it has stopped.
Note that these scripts can't retrigger the when green flag clicked blocks, so it's best to put those scripts under a start broadcast and broadcast it when the green flag is clicked.
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- space_elephant
- Scratcher
500+ posts
when stop sign clicked block
no.It's a slightly complicated but universal workaround; here's a simpler workaround that most people know:What are all these blocks?...it will also trigger on stop all blocks thoughwhen gf clickedAs long as the project is running, the timer will never get to 1 second because it's constantly being reset. However, when the project stops, the forever loop stops running, allowing the timer to continue past 1 second, triggering the when timer > _ block. (lag can also trigger the script)
forever
reset timer
end
when [timer v] > (1)
... // project has stoppedIt's a slightly complicated but universal workaround; here's a simpler workaround that most people know:What are all these blocks?...it will also trigger on stop all blocks thoughwhen gf clickedAs long as the project is running, the timer will never get to 1 second because it's constantly being reset. However, when the project stops, the forever loop stops running, allowing the timer to continue past 1 second, triggering the when timer > _ block. (lag can also trigger the script)
forever
reset timer
end
when [timer v] > (1)
... // project has stopped
space_elephant's workaround is independent of the timer, so it won't break other timer-reliant scripts; they also shortened the delay to the smallest amount so that the project doesn't wait an entire second before realising that it has stopped.
Note that these scripts can't retrigger the when green flag clicked blocks, so it's best to put those scripts under a start broadcast and broadcast it when the green flag is clicked.
space_elephant's workaround is independent of the timer, so it won't break other timer-reliant scripts; they also shortened the delay to the smallest amount so that the project doesn't wait an entire second before realising that it has stopped.
Note that these scripts can't retrigger the when green flag clicked blocks, so it's best to put those scripts under a start broadcast and broadcast it when the green flag is clicked.
If you start the project then press stop sign it will detect that but if immediately after that you press stop sign again, then it fails to detect that
here is the workaround that I actually use most of the time:
when green flag clickedthe only differences between this and the full one are:
forever
reset timer
end
when [timer v] > (0.1)
broadcast [stop sign clicked v]
forever
reset timer
end
- I used the timer instead of making one using (days since 2000) and a variable
- I have a regular {when > ( )] block instead of needing a {when < > becomes true] workaround
the problem with all possible workarounds for your block is that [stop [all v]] block has the same effect as the stop sign and so triggers the script
I would like if they added it into scratch as a block but it has been rejected so they won't
- adsuri
- Scratcher
1000+ posts
when stop sign clicked block
Thnx for the feedback evry1!
Now i'm gonna close this.
Now i'm gonna close this.
Last edited by adsuri (Aug. 10, 2018 13:34:49)
H He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu
Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr
- Discussion Forums
- » Suggestions
- » when stop sign clicked block