Discuss Scratch

julianandwill
Scratcher
500+ posts

Pause Button

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
DaSpudLord
Scratcher
1000+ posts

Pause Button

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
Cream_E_Cookie
Scratcher
1000+ posts

Pause Button

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
DaSpudLord
Scratcher
1000+ posts

Pause Button

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
julianandwill
Scratcher
500+ posts

Pause Button

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
Detecting the stop button can use the timer as well:
when green flag clicked
forever

reset timer
end


when [timer v] > (0.5)
... :: grey
DaSpudLord
Scratcher
1000+ posts

Pause Button

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
Detecting the stop button can use the timer as well:
when green flag clicked
forever

reset timer
end


when [timer v] > (0.5)
... :: grey
That's the workaround I was talking about.
Cream_E_Cookie
Scratcher
1000+ posts

Pause Button

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
And green flag
DaSpudLord
Scratcher
1000+ posts

Pause Button

Cream_E_Cookie wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
And green flag
Okay. Post it.
Cream_E_Cookie
Scratcher
1000+ posts

Pause Button

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
And green flag
Okay. Post it.
I'll post it in a project tomorrow, it's getting lkate
DaSpudLord
Scratcher
1000+ posts

Pause Button

Cream_E_Cookie wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

julianandwill wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
Um, very easy:
when [timer v] > (0)
... :: grey
But then you can't use the timer, or every time you reset the timer, the project will restart.
Well you could also use a variable that changes by 1 every second.
But the timer also has uses that variables won't work for, like detecting when the stop button is pressed.
There is another workaround beside this
Another workaround for detecting the stop button? I'm all ears.
And green flag
Okay. Post it.
I'll post it in a project tomorrow, it's getting lkate
K.
sonicfan12p
Scratcher
1000+ posts

Pause Button

Workarounds for the green flag.
when [ v] key pressed
broadcast [start v]
when [ v] > (10)
broadcast [start v]
when this sprite clicked
broadcast [start v]
All 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.
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
Scratcher
42 posts

Pause Button

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
When something key pressed
scratchinghead
Scratcher
1000+ posts

Pause Button

TheoBCaderos wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
When something key pressed
I don't think it work.
iamunknown2
Scratcher
1000+ posts

Pause Button

scratchinghead wrote:

TheoBCaderos wrote:

DaSpudLord wrote:

Cream_E_Cookie wrote:

Superandultra wrote:

No support, the point of scratch is to program, adding that would defeat the purpose of learning how to program a pause button.
Same with the stop button and green flag.
Support
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?
When something key pressed
I don't think it work.
It does… Replace the green flag clicked with
when [space v] key pressed
And 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
Scratcher
42 posts

Pause Button

iamunknown2 wrote:

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,
You wouldn't use a menu. You would repress the pause button.
flutehamster
Scratcher
500+ posts

Pause Button

Total Support
Zekrom01
Scratcher
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.

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
Scratcher
1000+ posts

Pause Button

TheoBCaderos wrote:

iamunknown2 wrote:

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,
You wouldn't use a menu. You would repress the pause button.
But what if you wanted to use a custom menu? No support.
wayyyy
Scratcher
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
Scratcher
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..

Powered by DjangoBB