Discuss Scratch

AgentCNF
Scratcher
100+ posts

"Stop" Block not working!

Ok, so this brick
stop [ v]

Play my latest game, Pixel Town 2.
powerboy0101
Scratcher
100+ posts

"Stop" Block not working!

I dont get it,Was it empty or like:
stop [all v]
stop [this script v]
stop [other scripts in sprites v]



Click on the picture, download file, i dare you.
jontmy00
Scratcher
500+ posts

"Stop" Block not working!

It has a drop down, you've to select one of the drop down options.

You're probably seeking for this:
stop [all v]

Hello.
AgentCNF
Scratcher
100+ posts

"Stop" Block not working!

No I did the drop down box I know that. Even when I put “all” or something, it just doesn't work.

Play my latest game, Pixel Town 2.
jontmy00
Scratcher
500+ posts

"Stop" Block not working!

AgentCNF wrote:

No I did the drop down box I know that. Even when I put “all” or something, it just doesn't work.
It does not work in what way? Is the script even activated?

Last edited by jontmy00 (Nov. 28, 2013 02:43:57)


Hello.
AgentCNF
Scratcher
100+ posts

"Stop" Block not working!

jontmy00 wrote:

AgentCNF wrote:

No I did the drop down box I know that. Even when I put “all” or something, it just doesn't work.
It does not work in what way? Is the script even activated?

Yeah it's activated. When I put it at the end of a script, it pretty much stops everything no matter what setting its on or if the script even gets to it.

Play my latest game, Pixel Town 2.
dtnc21
Scratcher
92 posts

"Stop" Block not working!

What script was the block in?

Was it in a…
if <> then

end
block?
LightBulb80
Scratcher
7 posts

"Stop" Block not working!

AgentCNF wrote:

jontmy00 wrote:

AgentCNF wrote:

No I did the drop down box I know that. Even when I put “all” or something, it just doesn't work.
It does not work in what way? Is the script even activated?

Yeah it's activated. When I put it at the end of a script, it pretty much stops everything no matter what setting its on or if the script even gets to it.
Can you show us an example?

Second Alt account for powerboy0101
AgentCNF
Scratcher
100+ posts

"Stop" Block not working!

LightBulb80 wrote:

AgentCNF wrote:

jontmy00 wrote:

AgentCNF wrote:

No I did the drop down box I know that. Even when I put “all” or something, it just doesn't work.
It does not work in what way? Is the script even activated?

Yeah it's activated. When I put it at the end of a script, it pretty much stops everything no matter what setting its on or if the script even gets to it.
Can you show us an example?
Well, it's a bit awkward. It only does it for certain scripts, not all. It just happens randomely.

Play my latest game, Pixel Town 2.
jontmy00
Scratcher
500+ posts

"Stop" Block not working!

AgentCNF wrote:

LightBulb80 wrote:

AgentCNF wrote:

jontmy00 wrote:

AgentCNF wrote:

No I did the drop down box I know that. Even when I put “all” or something, it just doesn't work.
It does not work in what way? Is the script even activated?

Yeah it's activated. When I put it at the end of a script, it pretty much stops everything no matter what setting its on or if the script even gets to it.
Can you show us an example?
Well, it's a bit awkward. It only does it for certain scripts, not all. It just happens randomely.
Show us that script in scratchblocks.

Hello.
lagoyu
Scratcher
1 post

"Stop" Block not working!

I have this problem too in Scratch 2.0.
Keypress events are still triggering other scripts even after
stop [all]
e.g.
if <(size) < [20]> then
say [you lost]
stop [all]
end
Zambonifofex
Scratcher
100+ posts

"Stop" Block not working!

lagoyu wrote:

I have this problem too in Scratch 2.0.
Keypress events are still triggering other scripts even after
stop [all]
e.g.
if <(size) < [20]> then
say [you lost]
stop [all]
end
That's how it's supposed to work…
to fix that, instead of using
when [space v] key pressed
action //category=grey
use
when green flag clicked
forever
wait until <key [space v] pressed?>
action //category=grey
end
victorfteha
New to Scratch
1 post

"Stop" Block not working!

Thanks so much Zambonifofex!!! I had this same problem and I followed your advice and it worked! I don't understand why, but I'm glad no one can cheat on my game anymore. Thank you!
PeanutPig
Scratcher
31 posts

"Stop" Block not working!

What is the action?(the gray)

when green flag clicked
forever
say

end

Check out Wahsp,My new account!
TheGreatTurbo
New to Scratch
3 posts

"Stop" Block not working!

I am having the same problem, the stop block does work but on one of my scripts it does not.

when [any] key pressed
broadcast [gameplay1]
stop [this script]

Last edited by TheGreatTurbo (June 23, 2016 04:50:14)

TheGreatTurbo
New to Scratch
3 posts

"Stop" Block not working!

Ok so I have don a little digging, so I kind of figured out how to do it.

Instead of doing it something like this;

when green flag clicked
stop [ v]

It should be like this;

when green flag clicked
forever

stop [ v]
end

See how it's in the “Forever” block? it should keep the script stopped.

e.g.

when green flag clicked
if <key [ v] pressed?> then
stop [ v]

end

Last edited by TheGreatTurbo (June 23, 2016 04:58:04)

drmcw
Scratcher
1000+ posts

"Stop" Block not working!

I think people are confusing stopping a script with deleting a script. A stop script just stops the current script that is running. A stop all script stops all the scripts that are running. It does not delete the scripts so if an event is generated that will make a script start then it will e.g

Even after a
stop [all v]
which stops all running scripts.

If a user presses the space key afterwards then
when [space v] key pressed
scripts will still be run….they have not been deleted have they?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
1301353
Scratcher
2 posts

"Stop" Block not working!

Heleeeeeeeeeeelp when i did

when this sprite clicked
switch backdrop to [ backdrop 3]
go to x: (221) y: (-5)
forever
stop [ this script]
end

it didn't stop!!!

Last edited by 1301353 (June 4, 2017 04:25:12)

dtnc21
Scratcher
92 posts

"Stop" Block not working!

1301353 wrote:

Heleeeeeeeeeeelp when i did

when this sprite clicked
switch backdrop to [ backdrop 3]
go to x: (221) y: (-5)
forever
stop [ this script]
end

it didn't stop!!!
Erm… that script is working as intended.

Maybe you were expecting something else? You aren't being specific enough as to what you're trying to stop.
drmcw
Scratcher
1000+ posts

"Stop" Block not working!

1301353 wrote:

Heleeeeeeeeeeelp when i did

when this sprite clicked
switch backdrop to [ backdrop 3]
go to x: (221) y: (-5)
forever
stop [ this script]
end

it didn't stop!!!
Read my post above yours. Every time you click the sprite the script will switch backdrop and go to 221,-5. The forever stop is pointless as that is the end of the script. The script is still there but not running…it is stopped. However as soon as you click the sprite it does run, that is what
when this sprite clicked
means.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?

Powered by DjangoBB

Standard | Mobile