Discuss Scratch
- julianandwill
-
500+ posts
Pause Button
Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- DaSpudLord
-
1000+ posts
Pause Button
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- Cream_E_Cookie
-
1000+ posts
Pause Button
There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- DaSpudLord
-
1000+ posts
Pause Button
Another workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- julianandwill
-
500+ posts
Pause Button
Detecting the stop button can use the timer as well:Another workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
when green flag clicked
forever
reset timer
end
when [timer v] > (0.5)
... :: grey
- DaSpudLord
-
1000+ posts
Pause Button
That's the workaround I was talking about.Detecting the stop button can use the timer as well:Another workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: greywhen green flag clicked
forever
reset timer
end
when [timer v] > (0.5)
... :: grey
- Cream_E_Cookie
-
1000+ posts
Pause Button
And green flagAnother workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- DaSpudLord
-
1000+ posts
Pause Button
Okay. Post it.And green flagAnother workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- Cream_E_Cookie
-
1000+ posts
Pause Button
I'll post it in a project tomorrow, it's getting lkateOkay. Post it.And green flagAnother workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- DaSpudLord
-
1000+ posts
Pause Button
K.I'll post it in a project tomorrow, it's getting lkateOkay. Post it.And green flagAnother workaround for detecting the stop button? I'm all ears.There is another workaround beside thisBut the timer also has uses that variables won't work for, like detecting when the stop button is pressed.Well you could also use a variable that changes by 1 every second.But then you can't use the timer, or every time you reset the timer, the project will restart.Um, very easy:I can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Supportwhen [timer v] > (0)
... :: grey
- sonicfan12p
-
1000+ posts
Pause Button
Workarounds for the green flag.
While I agree that some functions are good to use for a learning experience, the pause function isn't one of them. Most scratchers that want to pause something don't try to figure it out, they just forget about it and move on. Scrolling on the other hand is a good one for learning, because they will try to figure out if they want it. So why prevent us from having a pause block?
when [ v] key pressed
broadcast [start v]
when [ v] > (10)
broadcast [start v]
when this sprite clickedAll of these will work without clicking the green flag. Yet we have the green flag so there's no confusion. Stop all works just as well as the stop sign, but we have it so there's no confusion. So why would you be against this? If we used your logic, then I would go off and learn binary, even though I'd never have to use it to make a game, because all the binary has been done for you.
broadcast [start v]
While I agree that some functions are good to use for a learning experience, the pause function isn't one of them. Most scratchers that want to pause something don't try to figure it out, they just forget about it and move on. Scrolling on the other hand is a good one for learning, because they will try to figure out if they want it. So why prevent us from having a pause block?
- TheoBCaderos
-
42 posts
Pause Button
When something key pressedI can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Support
- scratchinghead
-
1000+ posts
Pause Button
I don't think it work.When something key pressedI can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Support
- iamunknown2
-
1000+ posts
Pause Button
It does… Replace the green flag clicked withI don't think it work.When something key pressedI can see the stop button being workaroundable, but it is very necessary. Anyway, how is the green flag workaroundable…? It literally starts the project. Without it, how would the project start?Same with the stop button and green flag. No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Support
when [space v] key pressedAnd you'll see it works if you hit the “space” button.
Anyway, how would the pause button work? If the pause button completely stopped everything, how would you be able to get it back up with an interactive menu? No support, too ambiguous,
- TheoBCaderos
-
42 posts
Pause Button
You wouldn't use a menu. You would repress the pause button. Anyway, how would the pause button work? If the pause button completely stopped everything, how would you be able to get it back up with an interactive menu? No support, too ambiguous,
- Zekrom01
-
1000+ posts
Pause Button
Guys no need to argue!
First of all, this might be hard for Scratch to code, it will require a boat load of downtime.
Second, the purpose of scratch is to EDUCATE! EDUCATE kids to program! Why can't they program their own pause button, it's so freaking easy!
You use variables and broadcasts for a basic pause button, so something like this.
First of all, this might be hard for Scratch to code, it will require a boat load of downtime.
Second, the purpose of scratch is to EDUCATE! EDUCATE kids to program! Why can't they program their own pause button, it's so freaking easy!

You use variables and broadcasts for a basic pause button, so something like this.
when [d v] key pressed
set [Paused? v] to [1 ]
if <(Paused?) = [1 ]> then
forever
if <key [d v] pressed?> then
set [Paused? v] to [0 ]
broadcast [Unpause v]
end
end
end
when I receive [Start v] // When your game starts.
if <(Paused) = [1 ]> then
broadcast [Pause v]
end
- iamunknown2
-
1000+ posts
Pause Button
But what if you wanted to use a custom menu? No support.You wouldn't use a menu. You would repress the pause button. Anyway, how would the pause button work? If the pause button completely stopped everything, how would you be able to get it back up with an interactive menu? No support, too ambiguous,
- wayyyy
-
500+ posts
Pause Button
Support, I want to have this for viewing animations so when I have to stop, I can just pause.
- Nether_before
-
1000+ posts
Pause Button
Semi-support, you can code them yourself but it would be nice to have buttons for them next to the green flag..