Doesn't quite work
It works for me. You need to click the red square button that replaces the general stop button for the script to work.
Oh, ok, thanks
it does not work
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:
//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]>
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: Snap! Build Your Own Blocks
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: