Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » When i click the green flag, it always stops the program for NO REASON
- cechols
-
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
-
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
-
100+ posts
When i click the green flag, it always stops the program for NO REASON
More importantly, are the two buttons reversed? Basically, does the stop button run your projects? Does this happen on all projects you try to run?
- cechols
-
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
-
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…
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
-
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
-
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
-
1000+ posts
When i click the green flag, it always stops the program for NO REASON
It'd be a good idea to read some of the replies above, and do some of the things they suggest. I even tried creating a new account and tried it on there it still doesn't work
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
-
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/
Here is the link: https://scratch.mit.edu/projects/130230251/
- TheLogFather
-
1000+ posts
When i click the green flag, it always stops the program for NO REASON
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. I am having the same issue with one of my projects…
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
-
6 posts
When i click the green flag, it always stops the program for NO REASON
Thank you so much for your help. I appreciate it.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. I am having the same issue with one of my projects…
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.
- Discussion Forums
- » Bugs and Glitches
-
» When i click the green flag, it always stops the program for NO REASON