Discuss Scratch

adsuri
Scratcher
500+ 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)





















Last edited by adsuri, Harry James Potter, & Tom Marvolo Riddle (Tomorrow 11:59:59.99999)
100th Post!!!!! | 200th Post!!!!! | 250th Post!!!!! | 300th Post!!!!! | 400th Post!!!!! | 500th Post!!!!! | 600th Post!!!!! |Adsuri's Shop!!!!! | Reviewer, Idea Person, & “BBCode”…er At The Emerald Shop! | Banner By @Sweetlyshy | An Internet Plz?
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)


this is a siggy
a sad siggy
stop reading this siggy
it only gets sadder
stop
why are you reading this
you do realize I can tell my mom about this right
oh wait
my mom doesn't care
adsuri
Scratcher
500+ 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)





















Last edited by adsuri, Harry James Potter, & Tom Marvolo Riddle (Tomorrow 11:59:59.99999)
100th Post!!!!! | 200th Post!!!!! | 250th Post!!!!! | 300th Post!!!!! | 400th Post!!!!! | 500th Post!!!!! | 600th Post!!!!! |Adsuri's Shop!!!!! | Reviewer, Idea Person, & “BBCode”…er At The Emerald Shop! | Banner By @Sweetlyshy | An Internet Plz?
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.

this is a siggy
a sad siggy
stop reading this siggy
it only gets sadder
stop
why are you reading this
you do realize I can tell my mom about this right
oh wait
my mom doesn't care
LuckyLucky7
Scratcher
1000+ posts

when stop sign clicked block

REJECTED!

I have about 1900 posts, 60 projects, 125 total topics, and 65 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
100+ 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

Do you like chess?
████████████████
████████████████
████████████████ ▄▀▄▀▄▀▄▀
████████████████ ▄▀▄▀▄▀▄▀
████████████████ ▄▀▄▀▄▀▄▀
████████████████ ▄▀▄▀▄▀▄▀
████████████████
████████████████
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?

this is a siggy
a sad siggy
stop reading this siggy
it only gets sadder
stop
why are you reading this
you do realize I can tell my mom about this right
oh wait
my mom doesn't care
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 / 13 / 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
Please don't feel the obligation to post on every single topic you see; eventually you will resort to spam.
Another suggestion has been implemented!
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
space_elephant
Scratcher
100+ 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

Do you like chess?
████████████████
████████████████
████████████████ ▄▀▄▀▄▀▄▀
████████████████ ▄▀▄▀▄▀▄▀
████████████████ ▄▀▄▀▄▀▄▀
████████████████ ▄▀▄▀▄▀▄▀
████████████████
████████████████
adsuri
Scratcher
500+ 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)





















Last edited by adsuri, Harry James Potter, & Tom Marvolo Riddle (Tomorrow 11:59:59.99999)
100th Post!!!!! | 200th Post!!!!! | 250th Post!!!!! | 300th Post!!!!! | 400th Post!!!!! | 500th Post!!!!! | 600th Post!!!!! |Adsuri's Shop!!!!! | Reviewer, Idea Person, & “BBCode”…er At The Emerald Shop! | Banner By @Sweetlyshy | An Internet Plz?

Powered by DjangoBB

Standard | Mobile