Yes it does. However, it can only run for one frame
no it didn't work
yes it does.
Two things:
- the rest of the program can't use the timer, and
- the user will have to click the red square for it to work
Isn't the stop button for stopping projects, like in scratch? i don't see any real reason to support this
elaborate on how this would help plz
We put in the when stop feature for the sake of robots that must be sent a stop signal to stop its motors.
um... ok???????
How to get the red square?
if the project has a generic WHEN block in it, the red square will appear automatically when you press the stop button
Thanks!
here's a workaround that can run for more than one frame:
[scratchblocks]
//in a new sprite:
when I am [stopped v] :: control hat
set [pixelate v] effect to (0.05)
when I am [stopped v] :: control hat
clear graphic effects
when gf clicked :: control
clear graphic effects
hide
when <([pixelate v] effect :: looks) =(0.05) :: grey) > :: control hat
broadcast [stop sign clicked v] :: control
when I receive [stop sign clicked v] :: control // this in the wanted sprite
. . .
wait until <(ask [the new sprite v] for (([pixelate v] effect :: looks) :: grey ring) :: control) = [0]>
[/scratchblocks]
now, the green flag stops the stop sign scripts, but the stop sign still stops the other scripts. if you want the stop sign to stop those too, delete the when ⚑ clicked script (I think).
Thank you.
.
This does not work for me. Project: https://snap.berkeley.edu/snap/snap.html#present:Username=donotforgetmycode_snap&ProjectName=stop%20bug
It worked in an earlier version. I know how to fix it, modify the "when ⚑ clicked" script in "Sprite" for that project:
That doesn't work either
okay, now modify this other script to the following:
still doesn't work
oh, I forgot to tell you: delete the script
thanks. now it sort of works, but you need to click the stop button twice. is there any way to fix that?
no, because of the when <> hat block rule.