Discuss Scratch

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)
gdxfor
Scratcher
100+ posts

Broadcast menu internal input

No I just want the internal input
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:
{
  "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
  }
Which means you can simply create a “control_create_clone_of_menu” without its parent:
{
  "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
  }
}
On the other hand, the event broadcast is implemented like this:
{
  "!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
  }
}
And there just isn't anything to extract out here.
EngineerRunner
Scratcher
1000+ posts

Broadcast menu internal input

mybearworld wrote:

-snip-
couldn't you have it in a “join () ()” block?
mybearworld
Scratcher
1000+ posts

Broadcast menu internal input

EngineerRunner wrote:

(#6)

mybearworld wrote:

-snip-
couldn't you have it in a “join () ()” block?
Good idea, that does work! https://scratch.mit.edu/projects/890831839/

Last edited by mybearworld (Sept. 8, 2023 15:03:40)

gdxfor
Scratcher
100+ posts

Broadcast menu internal input

mybearworld wrote:

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

mybearworld wrote:

EngineerRunner wrote:

(#6)

mybearworld wrote:

-snip-
couldn't you have it in a “join () ()” block?
Good idea, that does work! https://scratch.mit.edu/projects/890831839/



: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.
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

kitty1000pranjalc wrote:

ok… There are some rare java codes which you could download and put in your project.
if <(message1 v) received? :: sensing boolean> then
do message 1 stuff :: grey
end

idk what this forum is about
Please don't post on old and resolved topics…

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.
cheddargirl
Scratch Team
1000+ posts

Broadcast menu internal input

Closed due to necroposting.

Powered by DjangoBB