Discuss Scratch

Quantum1993
Scratcher
100+ 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
Semi-support, because this has a workaround using broadcasts, but would make it more simple.


Manager of Quantum Games and Quantum Software
Are you an experienced Scratcher? Join the Jurassic Park: Security Shift Development Team at https://scratch.mit.edu/studios/34523787
lgrov44
Scratcher
500+ posts

A "Restart" -block

No support, I just don't feel the need to do this. The workaround seems simple enough and I am alrighty too used to the old-fashioned way, not that it shouldn't get updated but that I like this way.

lgrov44, an Australian Scratcher whose most famous for his follows, followed by his activity, especially on Discussion Forums, and his follower count. Is also a remix chainer and school student. Identifies as bisexual.

My top 3 favourite people:
1. @Higgies (deleted) - First Follower, Thank you so much! (Wish you could see this…)
2. @Dubstepv1 (Banned/Moved) - Remix Chainer
3. @GIitchInTheMatrix (Moved to @GlitchedThrough) - Many small things.
Still looking for one of my first followers who are still active.
chriscreators14
Scratcher
500+ posts

A "Restart" -block

DotDash wrote:

(#2)

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
Maybe a drop-down?
Options:

restart [this script v]

restart [all v]

restart [other scripts in this sprite v]

restart [other sprites v]
restart [all v] :: control // this script, all, other scripts in this sprite
restart [all v] and stop :: control cap
click green flag :: events
click green flag and stop :: events cap

See that line over there? Everything below it is my signature. You can advertise here.
Ctrl+Alt+Down or thingo do NOT ask to scroll

(/) // This is Kumqa, who sends evil kumquats back to their camp.
<[<>]::sound> // This is Orba, who dizzies enemies by rotating.
[hi] \/\/ This is Glitchya, who glitches thingos. // Oh, I fixed the comment bug now.

block haven {block gun (ammo::grey) (ammo::grey)::sensing} <true :: operators> // This is Signa, which makes letter guns.

define block haven (block thingo) <auto fire?>
forever
if <enemies? :: sensing> then
if <not <auto fire?>> then
if <key [space v] pressed> then
set [fire? v] to <true :: operators>
else
set [fire? v] to <true :: operators>
end
else
set [fire? v] to <true :: operators>
end
else
set [fire? v] to <false :: operators>
end
if <fire? :: variables> then
repeat (10)
create clone of [signa blocks]
end
broadcast (fire signa blocks v)
end

-OctoSquid-
Scratcher
100+ posts

A "Restart" -block

Support, this could be used to automate those “double click green flag” projects which would be really convenient.

Thank Goodness I Don't Type Like This Anymore

please don't look at my 2021 forum posts


(ㅤ)
<ㅤ>

da rules wrote:

don't be mean

Powered by DjangoBB