Discuss Scratch

-Osiris-
Scratcher
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.
8301coolguy
Scratcher
9 posts

Pause/Resume

I support. It would save a lot of time and effort.
cinnamon_bun_puff
Scratcher
500+ posts

Pause/Resume

scimonster wrote:

Starting from here, the “How delete all clones?” topic turned more into a “pause/resume” topic. So, i'm creating a new topic for this.

Some points from the old topic:

mrsteve wrote:

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 loud

BoltBait wrote:

If you hit the pause button, would it pause the timer?

Would it pause updating cloud variables?

Would it pause the date and time blocks?

mrsteve wrote:

he he he, In spite of all I do Time marches on, I would expect the same in Scratch.

Hardmath123 wrote:

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
Scratcher
89 posts

Pause/Resume

Support! This would be very helpful for me, since I watch long animations all the time…
megaman100
Scratcher
100+ posts

Pause/Resume

I Support!
megaman100
Scratcher
100+ posts

Pause/Resume

Here's how I imagine it would look like.

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

Pause/Resume

While this is a nice suggestion, I believe there is a workaround:
Pause button
when this sprite clicked
stop [ all]

Unpause button.
 
when this sprite clicked
broadcast [ continue project]
-Osiris-
Scratcher
100+ posts

Pause/Resume

megaman100 wrote:

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

Pause/Resume

jromagnoli wrote:

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]
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.

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
Hyperfinity
Scratcher
500+ posts

Pause/Resume

Support…
everone123
Scratcher
56 posts

Pause/Resume

This was my idea:

play sound [example] from [5] secs
everone123
Scratcher
56 posts

Pause/Resume

everone123 wrote:

This was my idea:

play sound [example] from [5] secs
That didn't come out as I expected but whatever
MrFluffyPenguins
Scratcher
1000+ posts

Pause/Resume

jromagnoli wrote:

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]
How would it start again?
Ryrie36
Scratcher
1000+ posts

Pause/Resume

+1 so much.
I really need that pause button.
-DancerRJV-
Scratcher
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
Scratcher
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-
Scratcher
1000+ posts

Pause/Resume

julianandwill wrote:

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.
I guess it would be tricky but I think it would be helpfull. Thank you for speeking your word.
julianandwill
Scratcher
500+ posts

Pause/Resume

-DancerRJV- wrote:

julianandwill wrote:

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.
I guess it would be tricky but I think it would be helpfull. Thank you for speeking your word.
Do you have any further ideas to promote this idea? And you're welcome.
Seth_Zaw
Scratcher
100+ posts

Pause/Resume

You could make it a sprite though.
when this sprite clicked
broadcast [pause everything v]

Powered by DjangoBB