Discuss Scratch

Pandan_the_coder
Scratcher
100+ posts

New Way of Hat Blocks

What I would like each hat block to look like:

when something happens [script1 v] :: hat events

You can name scripts whatever you like. And the stop block would look like this:

stop [script1 v] :: cap control

It would be easier to stop scripts that way.

Last edited by Pandan_the_coder (Jan. 30, 2022 15:17:26)

-TheRealLegend-
Scratcher
100+ posts

New Way of Hat Blocks

There is already a block that looks like.

when I receive [ v]

and you can also already name the message.
I_LOVE_TO_MAKE_STUFF
Scratcher
1000+ posts

New Way of Hat Blocks

Pandan_the_coder wrote:

What I would like each hat block to look like:

when something happens [script1 v] :: hat events

You can name scripts whatever you like. And the stop block would look like this:

stop [script1 v] :: cap control

It would be easier to stop scripts that way.
You could litterally use these:
stop [this script v]
And broadcast events
broadcast [event v]
when I receive [event v]
No Support
musicROCKS013
Scratcher
1000+ posts

New Way of Hat Blocks

It could be useful, but there is probably an easy workaround.
_nix
Scratcher
1000+ posts

New Way of Hat Blocks

This is a pretty advanced trick, but there actually is a workaround for stopping individual scripts — it uses “when I receive”, but you can connect the “broadcast” block to whatever hat block you like, so it can do the exact thing you're suggesting! It's tricky to explain in a forum post but I made an example… back in… um, 2016, wow https://scratch.mit.edu/projects/102386711/

This suggestion is also being discussed in a couple other places:
You might want to share your input or support in one of the above links to continue the discussion in one place!

Powered by DjangoBB