Discuss Scratch
- -Osiris-
-
100+ posts
Pause/Resume
Support, often I wish to take a break from playing a game to stretch my fingers, but I cannot leave the game unattended for long, which is why a pause button would be useful.
- cinnamon_bun_puff
-
500+ posts
Pause/Resume
here, the “How delete all clones?” topic turned more into a “pause/resume” topic. So, i'm creating a new topic for this.Starting from
Some points from the old topic:Okay so here is a suggestion “Pause/Resume Button” next to the Green Flag and Stop Sign.
I was looking at the project “Day Dream“ (absolutely beautiful) and hit the ”Stop Sign“ half way through and realized I had to go back and rewatch all I already saw (which wasn't so bad).
Anyway, a ”Pause/Resume” may solve my issue while watching daydream and my issue when running a simulation.
Of course does Pause pause everything, including Events? or only currently executing scripts?
I could envision wanting to Pause my currently executing scripts, but still want to be able to:
a) capture a screenshot (various stages of the simulation preserved in my cloud data for later review, which I am not sure I can do within scratch, but would be nice in a future version )
b) data captures to the cloud at various points (of course I could do this other ways, so a non-issue)
Need to think some more …Thanks for letting me think out loudIf you hit the pause button, would it pause the timer?
Would it pause updating cloud variables?
Would it pause the date and time blocks?he he he, In spite of all I do Time marches on, I would expect the same in Scratch.We just copy whatever BYOB does.I would say pause everything.
What does BYOB do, BTW?
I think:It should pause all currently running scripts. The timer would be paused, but the Stage watchers of the date/time blocks wouldn't. Cloud variables would take a rest.
Support I like to watch animations, and they tend to be long. Then my brother calls for help on Scratch. I have to stop the animation, and when I get back, I have to re-watch until where I left off, repeatedly.
- BonnieCat91
-
89 posts
Pause/Resume
Support! This would be very helpful for me, since I watch long animations all the time…
- megaman100
-
100+ posts
Pause/Resume
Here's how I imagine it would look like.
You should also have the ability to pause the project as well. In addition, you could unpause the scripts anytime.
pause [ all v]::control
pause [other scripts in this sprite v]::control
You should also have the ability to pause the project as well. In addition, you could unpause the scripts anytime.
unpause [ all v]::control
unpause [other scripts in this sprite v]::control
Last edited by megaman100 (Jan. 9, 2018 04:33:06)
- wWSunPandaWw
-
1000+ posts
Pause/Resume
While this is a nice suggestion, I believe there is a workaround:
Pause button
Unpause button.
Pause button
when this sprite clicked
stop [ all]
Unpause button.
when this sprite clicked
broadcast [ continue project]
- -Osiris-
-
100+ posts
Pause/Resume
Here's how I imagine it would look like.pause [ all v]
pause [other scripts in this sprite v]
You should also have the ability to pause the project as well. In addition, you could unpause the scripts anytime.unpause [ all v]
unpause [other scripts in this sprite v]
This suggestion is for a pause button next to the green flag and the stop button, not for a pause block.
- ihgfedcba
-
100+ posts
Pause/Resume
This could not work for some games; things like pausing songs cannot be implemented in Scratch, so this script would restart the songs after unpause. Also imagine you're inside a complex calculation; after your pause, there's no way to determine where to continue. What about this work-around?when [space v] key pressed
wait until <not <key [space v] pressed?>>
stop [other scripts in sprite v]
broadcast [stop v]
wait until <key [space v] pressed?>
when I receive [stop v] //This script goes in the other sprites.
stop [other scripts in sprite v]
stop [this script v]
An implementation of pause would have to be adapted for every game. For instance, a Tetris game could use this:
forever
quick tetris physics script ::grey
wait until <(paused) = (0)>
wait (1) secs
- everone123
-
56 posts
Pause/Resume
That didn't come out as I expected but whatever This was my idea:play sound [example] from [5] secs
- MrFluffyPenguins
-
1000+ posts
Pause/Resume
How would it start again? What about this work-around?when [space v] key pressed
wait until <not <key [space v] pressed?>>
stop [other scripts in sprite v]
broadcast [stop v]
wait until <key [space v] pressed?>
when I receive [stop v] //This script goes in the other sprites.
stop [other scripts in sprite v]
stop [this script v]
- -DancerRJV-
-
1000+ posts
Pause/Resume
I would love for there to be a pause button for projects. It's so annoying to start a project, and then be called away, than when you come back, you have to start the project all over again! I think it would be really nice to have a pause button. If you agree, feel free to say so in this discussion. I would love to know if it's just me who wants a pause button. Thanks!

- julianandwill
-
500+ posts
Pause/Resume
No support. Although this does SOUND useful in certain situations, at the same time it could mess a lot of things up and make projects confusing. For example, new blocks would have to be added and we wouldn't know which scripts would stop and it wold turn into a giant hairball of confusion. I might change my opinion if you explain more thoroughly and how this system would work, but for now, no support.
Last edited by julianandwill (July 3, 2018 23:01:59)
- -DancerRJV-
-
1000+ posts
Pause/Resume
I guess it would be tricky but I think it would be helpfull. Thank you for speeking your word. No support. Although this does SOUND useful in certain situations, at the same time it could mess a lot of things up and make projects confusing. For example, new blocks would have to be added and we wouldn't know which scripts would stop and it wold turn into a giant hairball of confusion. I might change my opinion if you explain more thoroughly and how this system would work, but for no, no support.
- julianandwill
-
500+ posts
Pause/Resume
Do you have any further ideas to promote this idea? And you're welcome.I guess it would be tricky but I think it would be helpfull. Thank you for speeking your word. No support. Although this does SOUND useful in certain situations, at the same time it could mess a lot of things up and make projects confusing. For example, new blocks would have to be added and we wouldn't know which scripts would stop and it wold turn into a giant hairball of confusion. I might change my opinion if you explain more thoroughly and how this system would work, but for no, no support.
- Seth_Zaw
-
100+ posts
Pause/Resume
You could make it a sprite though.
when this sprite clicked
broadcast [pause everything v]