Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Broadcast menu internal input
- gdxfor
-
Scratcher
100+ posts
Broadcast menu internal input
Can anyone find or make a project with just a broadcast menu internal input? Thanks.
- logabe
-
Scratcher
71 posts
Broadcast menu internal input
Do you mean something like this?
when I receive (foo)
broadcast (foo)
- davidtheplatform
-
Scratcher
500+ posts
Broadcast menu internal input
What do you mean by the internal input? If you mean the dropdown menu, I’m pretty sure you can’t get it by itself.
- mybearworld
-
Scratcher
1000+ posts
Broadcast menu internal input
Unfortunately, that's not possible.
It's possible for the clone menu, as its JSON looks like this:
Which means you can simply create a “control_create_clone_of_menu” without its parent:
On the other hand, the event broadcast is implemented like this:
And there just isn't anything to extract out here.
It's possible for the clone menu, as its JSON looks like this:
{ "WMNYEw*ejvm?I*hDo~xC": { "opcode": "control_create_clone_of", "next": null, "parent": "!g8Do!D{.C/f{}F;.`|,", "inputs": { "CLONE_OPTION": [1, "b/_j`w/z}}|iPx6*?iX`"] }, "fields": {}, "shadow": false, "topLevel": false }, "b/_j`w/z}}|iPx6*?iX`": { "opcode": "control_create_clone_of_menu", "next": null, "parent": "WMNYEw*ejvm?I*hDo~xC", "inputs": {}, "fields": { "CLONE_OPTION": ["_myself_", null] }, "shadow": true, "topLevel": false }
{ "b/_j`w/z}}|iPx6*?iX`": { "opcode": "control_create_clone_of_menu", "next": null, "parent": null, "inputs": {}, "fields": { "CLONE_OPTION": ["_myself_", null] }, "shadow": false, "topLevel": true, "x": -296, "y": 330 } }
{ "!g8Do!D{.C/f{}F;.`|,": { "opcode": "event_broadcast", "next": "WMNYEw*ejvm?I*hDo~xC", "parent": null, "inputs": { "BROADCAST_INPUT": [1, [11, "message1", "qSM,;%|oRy$gr_{/KT}e"]] }, "fields": {}, "shadow": false, "topLevel": true, "x": -296, "y": 330 } }
- EngineerRunner
-
Scratcher
1000+ posts
Broadcast menu internal input
-snip-couldn't you have it in a “join () ()” block?
- mybearworld
-
Scratcher
1000+ posts
Broadcast menu internal input
(#6)Good idea, that does work! https://scratch.mit.edu/projects/890831839/-snip-couldn't you have it in a “join () ()” block?
Last edited by mybearworld (Sept. 8, 2023 15:03:40)
- gdxfor
-
Scratcher
100+ posts
Broadcast menu internal input
Unfortunately, that's not possible.
It's possible for the clone menu, as its JSON looks like this:
…
And there just isn't anything to extract out here.
I knew about this (and is in fact the reason I made the discussion). However, after a lot of testing, I managed to get a version of the block into a Scratch Project without it being stuck to the join block.
- medians
-
Scratcher
1000+ posts
Broadcast menu internal input
(#6)Good idea, that does work! https://scratch.mit.edu/projects/890831839/-snip-couldn't you have it in a “join () ()” block?



:P
Last edited by medians (Sept. 8, 2023 23:27:32)
- kitty1000pranjalc
-
Scratcher
25 posts
Broadcast menu internal input
ok… There are some rare java codes which you could download and put in your project.
idk what this forum is about
if <(message1 v) received? :: sensing boolean> then
do message 1 stuff :: grey
end
idk what this forum is about
- BigNate469
-
Scratcher
1000+ posts
Broadcast menu internal input
ok… There are some rare java codes which you could download and put in your project.Please don't post on old and resolved topics…if <(message1 v) received? :: sensing boolean> then
do message 1 stuff :: grey
end
idk what this forum is about
0% of Scratch is written in Java. However, the majority of Scratch is written in JavaScript.
They're not the same thing (not by a long shot), don't get them confused.
- Discussion Forums
- » Advanced Topics
-
» Broadcast menu internal input







