Discuss Scratch
- Discussion Forums
- » Suggestions
- » [stop all∇ for () seconds]
- DotDash
- Scratcher
1000+ posts
[stop all∇ for () seconds]
This is extremely useful, and of what I know, there are no workarounds.
[stop all∇ for () seconds]
My browser / operating system: MacOS Macintosh X 10.8.5, Chrome 29.0.1547.76, Flash 11.8 (release 800)
- DadOfMrLog
- Scratcher
1000+ posts
[stop all∇ for () seconds]
You can work around it by resetting the timer just before you stop all, and have “when timer > N”.
You need to have a variable you set just before you stop, so you know that the “when timer” should only continue if that variable is set as expected.
Might be worth noting that you can use a similar technique to do some ‘clearing up’ if someone presses stop at some point in your project. You just need to have some way to keep track of what sort of stage your project is at, so you know what & when to clear up if it happens.
For example, I use it in my ping test project to try to clear up the cloud variable that contains the user's connected info, so the next ‘player’ to connect sees it as free immediately. Can't deal with someone navigating away to a different page, though…
You need to have a variable you set just before you stop, so you know that the “when timer” should only continue if that variable is set as expected.
Might be worth noting that you can use a similar technique to do some ‘clearing up’ if someone presses stop at some point in your project. You just need to have some way to keep track of what sort of stage your project is at, so you know what & when to clear up if it happens.
For example, I use it in my ping test project to try to clear up the cloud variable that contains the user's connected info, so the next ‘player’ to connect sees it as free immediately. Can't deal with someone navigating away to a different page, though…
Last edited by DadOfMrLog (July 27, 2013 22:19:57)
Alternate account: TheLogFather –– HowTos and useful custom blocks (see studio). Examples below…
- String manipulation - - - X to power of Y - - - Clone point to clone - Detect New Scratcher - Speed tests studio -
- joshuaho
- Scratcher
1000+ posts
[stop all∇ for () seconds]
+1
College student studying Communication and Fire Technology, communication lab tutor, guitar and piano player, perfectionist, and just some guy who regularly eats and trains physically to stay healthy.
- k7e
- Scratcher
1000+ posts
[stop all∇ for () seconds]
How about “pause” instead of“stop all”, it's not stopping if it starts again in a definite number of seconds.
@mythoslore was so much more obvious than @spookily
- ScolderCreations
- Scratcher
1000+ posts
[stop all∇ for () seconds]
So basically, a feature that would pause all scripts in the project? Seems like it could be useful for syncing purposes, but maybe we should also have an option to pause until a certain condition is met, such as a timer reaching a certain number or a button being pressed.
- kccuber
- Scratcher
1000+ posts
[stop all∇ for () seconds]
Workaround-ish…
wait (number of seconds::grey) secs
- han614698
- Scratcher
1000+ posts
[stop all∇ for () seconds]
No. It won’t pause Workaround-ish…all scripts.wait (number of seconds::grey) secs
<Scratch Wikian | Forum Helper | Almost to 6000 Posts! | Please be aware I may mistype things, my wrist is fractured>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- warriorcats2155
- Scratcher
500+ posts
[stop all∇ for () seconds]
Support, there might be workarounds, but that's not a reasonable reason to not support a suggestion.
Scratch is about making easy accessible blocks without a hassle of a work around, this can support my claim.
Scratch is about making easy accessible blocks without a hassle of a work around, this can support my claim.
Parent user: kkidslogin, Generation 16: the first time you see this copy and paste it on top of your sig in the scratch forums, increase generation by 1, and change the parent user to who you’re reading this from. Social experiment.
- han614698
- Scratcher
1000+ posts
[stop all∇ for () seconds]
how about
pause::control
play::control
<Scratch Wikian | Forum Helper | Almost to 6000 Posts! | Please be aware I may mistype things, my wrist is fractured>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- 1492864
- Scratcher
500+ posts
[stop all∇ for () seconds]
and also how aboutpause::control
play::control
pause for () secs::control
Last edited by 1492864 (July 29, 2021 20:04:37)
Scratcheth f'rum us'r | 1 year on Scratcheth | 750+ posts| Inching to 1000 posts, 1 posteth at a timeth
Mine own most did view projecteth | Mine own most did love and fav'd projecteth | Latest projecteth |
Highlight h're and shift+down to readeth the rest.
The most did suggest suggestion:
Dark mode
- scratchusername40
- Scratcher
1000+ posts
[stop all∇ for () seconds]
A lotta necroposting. I see you use ocular
- han614698
- Scratcher
1000+ posts
[stop all∇ for () seconds]
and also how aboutpause::control
play::controlpause for () secs::control
define pause for (x) secs
pause::control
wait (x) secs
play::control
Not necroposting in suggestions. A lotta necroposting. I see you use ocular
Last edited by han614698 (July 29, 2021 20:06:47)
<Scratch Wikian | Forum Helper | Almost to 6000 Posts! | Please be aware I may mistype things, my wrist is fractured>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- k7e
- Scratcher
1000+ posts
[stop all∇ for () seconds]
Yeah, a lot of posting on old topics, but no necroposting in suggestions. A lotta necroposting. I see you use ocular
@mythoslore was so much more obvious than @spookily
- k7e
- Scratcher
1000+ posts
[stop all∇ for () seconds]
I like these better than this block. how aboutpause::control
play::control
@mythoslore was so much more obvious than @spookily
- ScolderCreations
- Scratcher
1000+ posts
[stop all∇ for () seconds]
The problem with two dedicated blocks for pausing and playing, is that the play block would never actually run. Think about it, if the entire project is paused, how would the play block be activated?
- lron_Fish
- New to Scratch
2 posts
[stop all∇ for () seconds]
Maybe it would pause everything except the detection for any executing blocks. Examples: The problem with two dedicated blocks for pausing and playing, is that the play block would never actually run. Think about it, if the entire project is paused, how would the play block be activated?
show
hide
switch costume to [ v]
next costume
switch backdrop to [ v]
next backdrop
clear graphic effects
clear
broadcast [ v]
reset timer
set [ v] to []
add [] to [list v]
delete ( v) of [list v]
insert [] at (1 v) of [list v]
replace item ( v) of [list v] with [thing]
EDIT: Whoops I forgot to change to Pianostar4 lol
Last edited by lron_Fish (July 31, 2021 00:07:18)
- SonicFanX123_321
- Scratcher
1000+ posts
[stop all∇ for () seconds]
pause [all scripts v] for (2) seconds ::control
pause [this script v] for (2) seconds ::control
pause [other scripts in this sprite v] for (2) seconds ::control
- Codingfairy07
- Scratcher
500+ posts
[stop all∇ for () seconds]
If you add the block to all scripts, it will pause all scriptsNo. It won’t pause Workaround-ish…all scripts.wait (number of seconds::grey) secs
(φ゜▽゜*♪) :: sensing // This is Laura, my kumquat guard who never sleeps. Sleeping is for amateur Kumquat guards.Announcement
;
- SuperMarioHome
- Scratcher
100+ posts
[stop all∇ for () seconds]
I agree. It should be: How about “pause” instead of“stop all”, it's not stopping if it starts again in a definite number of seconds.
pause [all v] for (...) seconds :: control // pause instead of stop
Support. The workaround may be hard to set up.
Last edited by SuperMarioHome (Aug. 2, 2021 15:28:16)
About me:
SuperMarioHome | Boy, age 11 | m a r i o | ScratchDOS
—–
Useful links:
TOLORS | Suggestion Directory | Ocular
You have reached the demo version limit. Highlight this text and press (Ctrl+)Shift+Down to continue.
—–
@SuperMarioHome2
—–
Check out Project Forumoji!
—–
—–
ScratchDOS 4.0 in the works!
;
SuperMarioHome | Boy, age 11 | m a r i o | ScratchDOS
—–
Useful links:
TOLORS | Suggestion Directory | Ocular
You have reached the demo version limit. Highlight this text and press (Ctrl+)Shift+Down to continue.
—–
@SuperMarioHome2
—–
Check out Project Forumoji!
—–
—–
ScratchDOS 4.0 in the works!
;
- Discussion Forums
- » Suggestions
- » [stop all∇ for () seconds]