Discuss Scratch

HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

zedthehedgehog wrote:

RIP ability to read.
If that would happen only once a week …

Last edited by HTML-Fan (June 29, 2020 16:53:39)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
zedthehedgehog
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

zedthehedgehog wrote:

RIP ability to read.
If that would happen only once a week …
Yes

Last edited by zedthehedgehog (June 29, 2020 16:55:16)


highlight + ctrl/ + shift + down | my website: zed2345.com | cool collab: meower | vividly visual vector art shop: the vvv | notice: I've left scratch, so I won't respond







RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT somerandomcharactersthatwillbepickedupbysearchengines RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT somerandomcharactersthatwillbepickedupbysearchengines RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT ellipsepostpianolizard ellipsepostpianolizard somerandomcharactersthatwillbepickedupbysearchengines ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

Okay. So that's the idea behind this all. Maybe there could also be a block like
start script [myscript v] :: events
so you have something like
broadcast [myscript v]
when I receive [myscript v]
. It's more or less like a class and an ID in CSS. And a script name must be unique, yes?

Last edited by HTML-Fan (June 29, 2020 17:51:28)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Fupicat
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

Okay. So that's the idea behind this all. Maybe there could also be a block like
start script [myscript v] :: events
so you have something like
broadcast [myscript v]
when I receive [myscript v]
. It's more or less like a class and an ID in CSS. And a script name must be unique, yes?
The broadcast block is basically already a “start script” block. Every hat block has a different way of starting so the start script block isn't necessary.



HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

Fupicat wrote:

Every hat block has a different way of starting so the start script block isn't necessary.
Yes, but maybe you have stopped a script and want to just restart it directly or whenever you want. But I can't think of an example.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

I think that it's like the illegal OP codes on the 6502: They can become handy but only in special cases so it's not sooo important.
I think that they're actually not really needed.

Last edited by HTML-Fan (June 29, 2020 18:17:06)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Fupicat
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

Fupicat wrote:

Every hat block has a different way of starting so the start script block isn't necessary.
Yes, but maybe you have stopped a script and want to just restart it directly or whenever you want. But I can't think of an example.
For that I think the broadcast method makes more sense. It would get confusing to have a greenflag block being activated by something other than the green flag, etc. Instead you could do this:

when green flag clicked
broadcast [start project v]

when I receive [start project v] // name = startProject
forever
turn cw (999) degrees
end

when [spacebar v] key pressed // stop project
stop script [startProject v] :: control

when [a v] key pressed // start again
broadcast [start project v]



HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

Fupicat wrote:

HTML-Fan wrote:

Fupicat wrote:

Every hat block has a different way of starting so the start script block isn't necessary.
Yes, but maybe you have stopped a script and want to just restart it directly or whenever you want. But I can't think of an example.
For that I think the broadcast method makes more sense. It would get confusing to have a greenflag block being activated by something other than the green flag, etc. Instead you could do this:

when green flag clicked
broadcast [start project v]

when I receive [start project v] // name = startProject
forever
turn cw (999) degrees
end

when [spacebar v] key pressed // stop project
stop script [startProject v] :: control

when [a v] key pressed // start again
broadcast [start project v]
Yes, just thought about it but there was the 60s thing.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

Okay, this block is garbage.
So I think that the final idea the team should implement is:
  • You can give hat blocks a script name
  • You do this by right-clicking on them
  • They have no name by default
  • You have a block to stop a script by name

Last edited by HTML-Fan (June 29, 2020 18:23:40)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
whiteandblackcat
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

So I think that the final idea the team should implement is:
  • You can give hat blocks a script name
  • You do this by right-clicking on them
  • They have no name by default
  • You have a block to stop a script by name
I agree with all of this! How would you display the name, would anyone be able to make a mockup?

Last edited by whiteandblackcat (June 30, 2020 10:10:57)


Hi, I'm Kat!
I'm not too active in the forums anymore, but I'm still active on scratch!
I'm a cohost of Scratch Writing Camp, running it with Alba, Birdi, Bakie, and Honey.

I love coding, maths (especially simultaneous equations and the quadratic formula!!!), art and writing (and also spreadsheets and responsibilities-)! I used to know 157 digits of pi, but I can only get to around 110 at the moment. I also love Minecraft :]

Here's some things I have been in the past:
- Forum helper member
- Buzzy Bee Banners secretary & banner maker
- Emerald Shop 4.0 Vice President
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

whiteandblackcat wrote:

How would you display the name, would anyone be able to make a mockup?
I would say, either like this:
when this sprite clicked - name: myscript:: events :: hat //or
when this sprite clicked - name: [myscript]:: events :: hat
or like this:
when this sprite clicked //name: myscript
Sorry, my photoshop skills are not good so I used scratchblock, an awesome thing.

Last edited by HTML-Fan (June 30, 2020 10:29:56)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
whiteandblackcat
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

whiteandblackcat wrote:

How would you display the name, would anyone be able to make a mockup?
I would say, either like this:
when this sprite clicked - name: myscript:: events :: hat //or
when this sprite clicked - name: [myscript]:: events :: hat
or like this:
when this sprite clicked //name: myscript
Sorry, my photoshop skills are not good so I used scratchblock, an awesome thing.
I like the second, although maybe the input could be a different colour to make sure people know it's a name, not part of the script? Maybe the colour of comments?

Hi, I'm Kat!
I'm not too active in the forums anymore, but I'm still active on scratch!
I'm a cohost of Scratch Writing Camp, running it with Alba, Birdi, Bakie, and Honey.

I love coding, maths (especially simultaneous equations and the quadratic formula!!!), art and writing (and also spreadsheets and responsibilities-)! I used to know 157 digits of pi, but I can only get to around 110 at the moment. I also love Minecraft :]

Here's some things I have been in the past:
- Forum helper member
- Buzzy Bee Banners secretary & banner maker
- Emerald Shop 4.0 Vice President
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

whiteandblackcat wrote:

Maybe the colour of comments?
More like a dropdown menu, I would say, or just the first one. You change the name with a right-click.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
hocsten
Scratcher
100+ posts

Stop a Certain Script Block

How about all the events/control hat blocks are like
when @greenFlag clicked @addInput::events hat
where when the button is pressed:
when @greenFlag clicked - script name [script1]::events hat
and you have
[start v] script [script1 v]::events

This account is now unused. Please see @BlooXen and @GlowingK.
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

Yes, the idea of stop and start in one block is good, since a single block for starting is pretty pointless, but may make sense in certain casas. but the default should be stop.
Hmm, I think that the function script name should always be visible. But that's my opinion.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

Will this be implemented?

Last edited by HTML-Fan (June 30, 2020 13:38:58)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Maximouse
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

Will this be implemented?
Maybe, maybe not. Just don't be impatient – dark mode was suggested years ago and the Scratch Team will probably add it but they decided to work on more important things first.


This is Maximouse's signature. Learn more about signatures.
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

But a dark mode is much harder to make then a variation of the stop other scripts in sprite block. This could be added in half an hour.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Maximouse
Scratcher
1000+ posts

Stop a Certain Script Block

HTML-Fan wrote:

But a dark mode is much harder to make then a variation of the stop other scripts in sprite block. This could be added in half an hour.
I don't think so. But even if it could – less than or equal and greater than or equal operators could be implemented in a few minutes, but they were suggested in 2013, even Paddle2See thinks they should be added and we still haven't got them.

Last edited by Maximouse (June 30, 2020 14:38:38)



This is Maximouse's signature. Learn more about signatures.
HTML-Fan
Scratcher
1000+ posts

Stop a Certain Script Block

But you can use
<not <[] > []>>
instead of
<[] smaller or equal [] :: operators> // I had an argument with Scratchblocks
so there's an easy workaround what should give this a low priority. But there's not really a workaround for this.

Last edited by HTML-Fan (June 30, 2020 14:42:13)


Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/

Powered by DjangoBB