Discuss Scratch
- ChildCritic
-
500+ posts
Asynchronous Custom Blocks
He, Like I do, doesn't mind fairly tedious workarounds. 75% as per above.Blank, just because it's workaroundable does not necessarily justify or warrant a no support. workaroundable by using broadcast blocks
no support
Anyways, Semi-support since there is a workaround.
- Arthurtilly
-
1000+ posts
Asynchronous Custom Blocks
No support, easy workaround.
...
broadcast [continue v]
...
when I receive [continue v]
...
- Jonathan50
-
1000+ posts
Asynchronous Custom Blocks
? No support, easy workaround....
broadcast [continue v]
...
when I receive [continue v]
...
- Arthurtilly
-
1000+ posts
Asynchronous Custom Blocks
What do you mean? It's a simple workaround for your idea.
- Jonathan50
-
1000+ posts
Asynchronous Custom Blocks
I don't understand it… do you mean like using callbacks? What do you mean? It's a simple workaround for your idea.
- Arthurtilly
-
1000+ posts
Asynchronous Custom Blocks
I mean, that if you call a broadcast in the middle of a script then you can run it like a custom block on a seperate thread. If you want parameters:
...
set [continue? v] to [false]
set [variable v] to (whatever :: grey)
broadcast [continue v]
wait until <(continue?) = [true]>
...
when I receive [continue v]
block (variable)
define block (parameter)
set [continue? v] to [true]
forever
...
end
- Jonathan50
-
1000+ posts
Asynchronous Custom Blocks
Ok, I have that in the OP, but it can get a little tedious if you have a threading-centric project. I mean, that if you call a broadcast in the middle of a script then you can run it like a custom block on a seperate thread. If you want parameters:...
set [continue? v] to [false]
set [variable v] to (whatever :: grey)
broadcast [continue v]
wait until <(continue?) = [true]>
...
when I receive [continue v]
block (variable)
define block (parameter)
set [continue? v] to [true]
forever
...
end
- Arthurtilly
-
1000+ posts
Asynchronous Custom Blocks
But that's only if you need parameters, and if the parameter changes right away. For no parameter, you can use broadcasts.
- comp09
-
1000+ posts
Asynchronous Custom Blocks
I support this - I don't want, for example, the custom block that renders the display with pen to interfere with other scripts in the project.
- Scratcher1002
-
1000+ posts
Asynchronous Custom Blocks
Truth, PLUS the workaround is nearly IMPOSSIBLE to incorporate into a 1s1s project. 75% as per above.Blank, just because it's workaroundable does not necessarily justify or warrant a no support. workaroundable by using broadcast blocks
no support
Support.
- Dylan5797
-
1000+ posts
Asynchronous Custom Blocks
Support. I really need this, broadcasts are too slow to rely on in my case.