Discuss Scratch

cechols
Scratcher
3 posts

When i click the green flag, it always stops the program for NO REASON

My browser / operating system: ChromeOS 8530.81.0, Chrome 53.0.2785.103, Flash 22.0 (release 0)
Paddle2See
Scratch Team
1000+ posts

When i click the green flag, it always stops the program for NO REASON

Does this happen on all projects you try to run?
Yanderan
Scratcher
100+ posts

When i click the green flag, it always stops the program for NO REASON

Paddle2See wrote:

Does this happen on all projects you try to run?
More importantly, are the two buttons reversed? Basically, does the stop button run your projects?
cechols
Scratcher
3 posts

When i click the green flag, it always stops the program for NO REASON

This happens on all projects i try to make and it always just stops even when i click the green flag
TheLogFather
Scratcher
1000+ posts

When i click the green flag, it always stops the program for NO REASON

Does it happen on projects by others? (I.e. do projects by others also not run?)

If projects by others work fine then it likely means you haven't included appropriate “green-flag clicked” hat blocks, or you don't have any loops in the scripts for these hat blocks (so the scripts just get to the end and finish almost immediately).

(Alternatively, you might have “stop all” blocks lurking around your scripts somewhere?)

I think it would be a good idea to share an example project so we can help explain what's going on…

Last edited by TheLogFather (Oct. 5, 2016 19:51:40)

turkey3
Scratcher
1000+ posts

When i click the green flag, it always stops the program for NO REASON

I think his confusion is when a project is already running and you click the green flag, it will stop everything and the initiate “When green flag clicked” blocks. This is completely intended by design so if you are running a project and want to basically restart it you don't have to click the stop sign and then the green flag again, it is merely one less click.
cechols
Scratcher
3 posts

When i click the green flag, it always stops the program for NO REASON

I even tried creating a new account and tried it on there it still doesn't work


TheLogFather
Scratcher
1000+ posts

When i click the green flag, it always stops the program for NO REASON

cechols wrote:

I even tried creating a new account and tried it on there it still doesn't work
It'd be a good idea to read some of the replies above, and do some of the things they suggest.

In particular, share an example project so we can look at it…

BTW, I had a look at your shared project (PaintBrawl), and that seems to be running for me, certainly not stopping. (But it does have a serious problem with the scripting that is causing a lot of trouble in the way it runs…)

joshuariddell
Scratcher
6 posts

When i click the green flag, it always stops the program for NO REASON

I am having the same issue with one of my projects. Everything was working fine until I started beta testing it. I even created a all-new program with the same scripts, and it worked for a while. However, like the first one it started to have the same problem. Please help me.


Here is the link: https://scratch.mit.edu/projects/130230251/
TheLogFather
Scratcher
1000+ posts

When i click the green flag, it always stops the program for NO REASON

joshuariddell wrote:

I am having the same issue with one of my projects…
You have “if touching edge / stop all”. The sprite is touching the edge at the start, so it just does as you've told it to do.

You've fallen into a common trap of assuming that the scripts will run in a certain order – I'm guessing you think that the left script runs before the right script, so you expect it to move the sprite before it reaches that “stop all”.

However, the order that Scratch runs scripts within a sprite depends on the layer order of the scripts within the sprite.

This project demonstrates how the same misconception about script ordering can cause another common problem:
https://scratch.mit.edu/projects/119645547/

If you read through the suggested fix then it should help you understand how you can fix your own project.

Last edited by TheLogFather (Nov. 10, 2016 20:14:15)

joshuariddell
Scratcher
6 posts

When i click the green flag, it always stops the program for NO REASON

TheLogFather wrote:

joshuariddell wrote:

I am having the same issue with one of my projects…
You have “if touching edge / stop all”. The sprite is touching the edge at the start, so it just does as you've told it to do.

You've fallen into a common trap of assuming that the scripts will run in a certain order – I'm guessing you think that the left script runs before the right script, so you expect it to move the sprite before it reaches that “stop all”.

However, the order that Scratch runs scripts within a sprite depends on the layer order of the scripts within the sprite.

This project demonstrates how the same misconception about script ordering can cause another common problem:
https://scratch.mit.edu/projects/119645547/

If you read through the suggested fix then it should help you understand how you can fix your own project.

Thank you so much for your help. I appreciate it.

Powered by DjangoBB