Discuss Scratch
- StrangeMagic32
-
1000+ posts
A new option in the "Stop" block
We all know about the
Well we have
“stop this script”
“stop all”
“stop other scripts in sprite”
Well I propose a new stop block, that may only be useful in broadcasts, and custom blocks, but can open a whole new door for scratchers.
I propose the
This would allow for more compact scripts, for example here
this
For example if you had multiple hats using the same
What do you think?
stop [ v]right?
Well we have
“stop this script”
“stop all”
“stop other scripts in sprite”
Well I propose a new stop block, that may only be useful in broadcasts, and custom blocks, but can open a whole new door for scratchers.
I propose the
stop [parent script v]
This would allow for more compact scripts, for example here
this
would be thisinsert hat block here::hat grey
if <(disable) = [1]> then
stop [this script v]
end
...
insert hat block here::hat grey
disable?
...
define disable?
if <(disable) = [1]> then
stop [parent script v]
end
For example if you had multiple hats using the same
script, then we could make it even more compact withif <(disable) = [1]> then
stop [this script v]
end
define disable?
if <(disable) = [1]> then
stop [parent script v]
end
What do you think?
Last edited by StrangeMagic32 (May 30, 2019 02:28:01)
- 12944qwerty
-
100+ posts
A new option in the "Stop" block
Support! This would be useful for checking things (like dying in a platformer) where the parent script is a loop you need to stop if True is returned.
- ScratchMarioMan64
-
100+ posts
A new option in the "Stop" block
Not sure how'd I use this but I'm sure @griffpatch might like it lol.
Support.
Support.
- imfh
-
1000+ posts
A new option in the "Stop" block
Would the block continue running after that?
Also, would it stop the whole block chain?
Either way it would be pretty useful. It could be pretty handy to have more selective control of scripts from within custom blocks.
when green flag clicked
my block
define my block
stop [parent script v] ::stack
...// Would this run?
Also, would it stop the whole block chain?
when green flag clicked
block A
... // Would this run?
define block A
block B
define block B
stop [parent script v]
Either way it would be pretty useful. It could be pretty handy to have more selective control of scripts from within custom blocks.
- StrangeMagic32
-
1000+ posts
A new option in the "Stop" block
It would not continue to run, seeing as right now it's a cap block, not stackwhen green flag clicked
my block
define my block
stop [parent script v] ::stack
...// Would this run?
Yes the “flag clicked” block would still run, seeing as it's the grandparent, not parentwhen green flag clicked
block A
... // Would this run?
define block A
block B
define block B
stop [parent script v]
- Kraken_Games
-
100+ posts
A new option in the "Stop" block
snip
Support. This would be quite useful for developers with lots of functions
Also, your forum signature is melded with your post for some reason
- StrangeMagic32
-
1000+ posts
A new option in the "Stop" block
ha ha xD Also, your forum signature is melded with your post for some reason
yeah I've seen this glitch quite a bit
- D-ScratchNinja
-
1000+ posts
A new option in the "Stop" block
Is the block you suggested basically the same as this?
break out of loop :: controlIf so, this could be a duplicate.
Last edited by D-ScratchNinja (May 24, 2019 00:43:08)
- imfh
-
1000+ posts
A new option in the "Stop" block
No, it's not. The “stop this script” block stops a custom block and goes back to the script that ran it. This block would stop both the custom block and the script that called it. Is the block you suggested basically the same as this?break out of loop :: controlIf so, this could be a duplicate.
- infinitytec
-
1000+ posts
A new option in the "Stop" block
Support, per above. Could be useful. It might need rephrasing however to keep it understandable to new Scratchers, or be in an extension.
- --Snowball--
-
500+ posts
A new option in the "Stop" block
Good idea! I'm not sure if I specifically would be using this that much, but it still seems like many people would!
- Kraken_Games
-
100+ posts
A new option in the "Stop" block
Why do you support? Just saying ‘support’ doesn't add anything to the discussion Support.
- evanultra01
-
100+ posts
A new option in the "Stop" block
Support! Having to experiment endlessly with stop blocks to make a thing could make for a very good use in games that have like a second chance!