Discuss Scratch

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

A Sticky of Rejected Suggestions by LionHeart70 actually used by customhacker for some of it wrote:

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

TheAdriCoolManDude wrote:

A Sticky of Rejected Suggestions by LionHeart70 actually used by customhacker for some of it wrote:

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.
Oh yea oops I didn't think about that.

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

adsuri wrote:

TheAdriCoolManDude wrote:

A Sticky of Rejected Suggestions by LionHeart70 actually used by customhacker for some of it wrote:

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.
Oh yea oops I didn't think about that.
Yeah, you read the list of rejected suggestions.


LuckyLucky7
Scratcher
1000+ posts

when stop sign clicked block

REJECTED!

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

PineappleDonuts
Scratcher
77 posts

when stop sign clicked block

adsuri wrote:

It would be similar to the when gfl clicked block.
when stop clicked :: events hat
It's rejected, but somebody should make a mod on that!!!

0(w ::motion)0 ::ring 
Support the Grian Movement: here!
And while you're here:
space_elephant
Scratcher
500+ posts

when stop sign clicked block

when gf clicked
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
it will also trigger on stop all blocks though

red link
[url=redlink.com][color=red][u]red link[/u][/color][/url]
TheAdriCoolManDude
Scratcher
1000+ posts

when stop sign clicked block

space_elephant wrote:

when gf clicked
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
it will also trigger on stop all blocks though
What are all these blocks?


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
Sheep_maker
Scratcher
1000+ posts

when stop sign clicked block

TheAdriCoolManDude wrote:

space_elephant wrote:

...
it will also trigger on stop all blocks though
What are all these blocks?
It's a slightly complicated but universal workaround; here's a simpler workaround that most people know:
when gf clicked
forever
reset timer
end
when [timer v] > (1)
... // project has stopped
As 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)

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

Sheep_maker wrote:

TheAdriCoolManDude wrote:

space_elephant wrote:

...
it will also trigger on stop all blocks though
What are all these blocks?
It's a slightly complicated but universal workaround; here's a simpler workaround that most people know:
when gf clicked
forever
reset timer
end
when [timer v] > (1)
... // project has stopped
As 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)

Sheep_maker wrote:

TheAdriCoolManDude wrote:

space_elephant wrote:

...
it will also trigger on stop all blocks though
What are all these blocks?
It's a slightly complicated but universal workaround; here's a simpler workaround that most people know:
when gf clicked
forever
reset timer
end
when [timer v] > (1)
... // project has stopped
As 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)

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.
no.
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 clicked
forever
reset timer
end
when [timer v] > (0.1)
broadcast [stop sign clicked v]
forever
reset timer
end
the only differences between this and the full one are:
  • 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

red link
[url=redlink.com][color=red][u]red link[/u][/color][/url]
adsuri
Scratcher
1000+ posts

when stop sign clicked block

Thnx for the feedback evry1!
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





Powered by DjangoBB