Discuss Scratch
- chriscreators14
-
Scratcher
500+ posts
A "Restart" -block
And broadcasting recursively. AndUh, I can see a problem with this:when gf clicked
forever
restart [this script v]define crash
crash
This gets the same results.When [timer v] > (0)but it was still added
play sound [annoying sound v]
Support.

Support. The workarounds are quite simple though -now we have 99 broadcasts in your newest project and the new broadcast is 100th
- Have the user click the green flag.
- Replace all When Flag Clicked with a broadcast, then broadcast that whenever you want to restart.
Report it.when green flag clickedWhat if someone does that?
forever
reset timer
end
when [timer v] > (0.2)
restart :: control cap
It's the same as when stop sign clicked restart.
It would be nice to have a block that's like restart from label A or something like that. What it would do is bring the script back to where the block “Label A” is at. So, two blocks would be added:What if somebody puts a goto after a label? No support, it is workaroundable using custom blocks and messages, or using the upcoming Restart blocks (for this reason, support)Goto label [(label id)]andLabel [(label id)]
The latter would just be ignored when running a script until it gets the first command, and then the script would jump backwards to the latter block. If there is no block with that id in the script, the goto block would just be ignored. They have blocks like these on the TI-BASIC programming language and they are beyond useful.
- medians
-
Scratcher
1000+ posts
A "Restart" -block
What about a repeat block?What would the repeat block do? You could just restart it a certain number of times if you mean repeating the project (x) times.
- slushiies-
-
Scratcher
55 posts
A "Restart" -block
Heyaccording to the scratch forum search, this is a duplicate. please refrain from posting duplicates, for info on how to find whether your idea is a duplicate or not, visit this forum post
We have astop []But what you gonna do if you just want to shut all scripts down and restart the game?
You can't just usestop [all]because (logically) you can't put another block under this block.
So you need to mess around with messages.
this block would be easy to understand and i think it wouldn't be too
hard to implement it.restart
- The_Game_
-
Scratcher
1000+ posts
A "Restart" -block
Where exactly is the dupe?Heyaccording to the scratch forum search, this is a duplicate. please refrain from posting duplicates, for info on how to find whether your idea is a duplicate or not, visit this forum post
We have astop []But what you gonna do if you just want to shut all scripts down and restart the game?
You can't just usestop [all]because (logically) you can't put another block under this block.
So you need to mess around with messages.
this block would be easy to understand and i think it wouldn't be too
hard to implement it.restart
Last edited by The_Game_ (June 16, 2023 00:50:10)
- medians
-
Scratcher
1000+ posts
A "Restart" -block
according to the scratch forum search, this is a duplicate. please refrain from posting duplicates, for info on how to find whether your idea is a duplicate or not, visit this forum postCan you link to the original topic then? Also, they made this nearly 10 years ago (that makes me feel old to say since 2013 does not feel like that long ago).. it was made before that topic even existed, so I doubt they would really need this now.
Also, I think you mean ocular because the forum search for Scratch was removed in 2016.
- slushiies-
-
Scratcher
55 posts
A "Restart" -block
ohhh it said that it was a new post?according to the scratch forum search, this is a duplicate. please refrain from posting duplicates, for info on how to find whether your idea is a duplicate or not, visit this forum postCan you link to the original topic then? Also, they made this nearly 10 years ago (that makes me feel old to say since 2013 does not feel like that long ago).. it was made before that topic even existed, so I doubt they would really need this now.
Also, I think you mean ocular because the forum search for Scratch was removed in 2016.
- The_Game_
-
Scratcher
1000+ posts
A "Restart" -block
Scratch just says whether something has new posts in it, not if the topic is new.ohhh it said that it was a new post?according to the scratch forum search, this is a duplicate. please refrain from posting duplicates, for info on how to find whether your idea is a duplicate or not, visit this forum postCan you link to the original topic then? Also, they made this nearly 10 years ago (that makes me feel old to say since 2013 does not feel like that long ago).. it was made before that topic even existed, so I doubt they would really need this now.
Also, I think you mean ocular because the forum search for Scratch was removed in 2016.
- VedanshS933
-
Scratcher
1000+ posts
A "Restart" -block
bump - this will be a cap block
Last edited by VedanshS933 (June 22, 2023 12:52:47)
- GlitchyDaCuber
-
Scratcher
81 posts
A "Restart" -block
HeySupport
We have astop []But what you gonna do if you just want to shut all scripts down and restart the game?
You can't just usestop [all]because (logically) you can't put another block under this block.
So you need to mess around with messages.
this block would be easy to understand and i think it wouldn't be too
hard to implement it.restart

- Rocketpowered12
-
Scratcher
100+ posts
A "Restart" -block
stop [all v] and restart :: control cap // same options as the "Stop" block
- AllenderaGames
-
Scratcher
100+ posts
A "Restart" -block
I think the restart block should look like this
sorry I forgot including this:
restart ( )::controlwith also
restart [all]::controlor also as:
restart [script v]::control
restart [other sprites]::control
set restart to ( v) times::control
( v) restart to ( v) ( v)::controlwhich one do you prefer?
sorry I forgot including this:
restart ( )::control
Last edited by AllenderaGames (Oct. 18, 2023 02:32:10)
- thedogcoder440
-
Scratcher
100+ posts
A "Restart" -block
BIG WORKAROUND!!
make broadcast block
also replace all
with
and the only when green flag clicked block is used here:
make broadcast block
broadcast [Reset v]
also replace all
when green flag clicked
with
when I receive [Reset v]
and the only when green flag clicked block is used here:
when green flag clicked
broadcast [Reset v]
- cactus-cacti
-
Scratcher
100+ posts
A "Restart" -block
Bump!
This would be very helpful because it would be quite handy in a project I'm working on.
This would be very helpful because it would be quite handy in a project I'm working on.
- BionicBoy554
-
Scratcher
1000+ posts
A "Restart" -block
Elaborate: does this restart act as a green flag block or reset the project to when you first started it?
- Unithlees3
-
Scratcher
1000+ posts
A "Restart" -block
Here's a workaround:
when green flag clicked
broadcast (green flag v)
when I receive [green flag v] // replace all "when green flag clicked" with this except for the first one
…
broadcast (green flag v) // restarts every script
// if you want to only do a certain script, just use a repeat block and set the repeat value to 2.

















