Discuss Scratch

chriscreators14
Scratcher
500+ posts

A "Restart" -block

firedrake969_test wrote:

DotDash wrote:

mitchboy wrote:

Uh, I can see a problem with this:

when gf clicked
forever
restart [this script v]
define crash
crash

This gets the same results.
And broadcasting recursively. And

When [timer v] > (0)
play sound [annoying sound v]
but it was still added

Support.

KingOfAwesome58219 wrote:

Support. The workarounds are quite simple though -
- Have the user click the green flag.
- Replace all When Flag Clicked with a broadcast, then broadcast that whenever you want to restart.
now we have 99 broadcasts in your newest project and the new broadcast is 100th

Diamond_Projects wrote:

when green flag clicked
forever

reset timer
end


when [timer v] > (0.2)
restart :: control cap
What if someone does that?
It's the same as when stop sign clicked restart.
Report it.

OmnipotentPotato wrote:

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:

Goto label [(label id)]
and
Label [(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.
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)
J4ol
Scratcher
100+ posts

A "Restart" -block

100% Want, Could Be Good For Loading Systems
OnTheCode99
Scratcher
500+ posts

A "Restart" -block

What about a repeat block?
medians
Scratcher
1000+ posts

A "Restart" -block

OnTheCode99 wrote:

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

PH-zero wrote:

Hey

We have a
stop []
But what you gonna do if you just want to shut all scripts down and restart the game?
You can't just use
stop [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
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 post
The_Game_
Scratcher
1000+ posts

A "Restart" -block

slushiies- wrote:

PH-zero wrote:

Hey

We have a
stop []
But what you gonna do if you just want to shut all scripts down and restart the game?
You can't just use
stop [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
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 post
Where exactly is the dupe?

Last edited by The_Game_ (June 16, 2023 00:50:10)

medians
Scratcher
1000+ posts

A "Restart" -block

slushiies- wrote:

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 post
Can 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

medians wrote:

slushiies- wrote:

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 post
Can 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.
ohhh it said that it was a new post?
The_Game_
Scratcher
1000+ posts

A "Restart" -block

slushiies- wrote:

medians wrote:

slushiies- wrote:

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 post
Can 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.
ohhh it said that it was a new post?
Scratch just says whether something has new posts in it, not if the topic is new.
VedanshS933
Scratcher
1000+ posts

A "Restart" -block

bump - this will be a cap block

Last edited by VedanshS933 (June 22, 2023 12:52:47)

medians
Scratcher
1000+ posts

A "Restart" -block

Bringing this topic up:
restart :: control cap
ninjahanzo
Scratcher
500+ posts

A "Restart" -block

bius
bump
GlitchyDaCuber
Scratcher
81 posts

A "Restart" -block

PH-zero wrote:

Hey

We have a
stop []
But what you gonna do if you just want to shut all scripts down and restart the game?
You can't just use
stop [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
Support
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

restart ( )::control
with also
restart [all]::control

restart [script v]::control

restart [other sprites]::control

set restart to ( v) times::control
or also as:
( v) restart to ( v) ( v)::control
which 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
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]
Gamer_Logan819
Scratcher
1000+ posts

A "Restart" -block

Bump because dupe
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.
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.

Powered by DjangoBB