Discuss Scratch

FreshTheCat
Scratcher
500+ posts

Add arguments to the event blocks

DarthVader4Life wrote:

I think it should be called “broadcast and send.”
broadcast [message v] and send (var) :: events
Yeah, this wording is better. But I'd like to change it *evil maniac laughter*
broadcast (message v) with data (data)(data) ➖ ➕ ::events
broadcast (message v) with data (data)(data) ➖ ➕ ::events
the minus-plus part was inspired by makecode, please tell me the minus and plus actually show up
FreshTheCat
Scratcher
500+ posts

Add arguments to the event blocks

Aww man, ninja'd

d016 wrote:

DarthVader4Life wrote:

I think it should be called “broadcast and send” to keep with Scratch's desire to be easily understood.
broadcast [message v] and send (var) :: events
Nice idea, although I feel like “broadcast” and “send” are synonyms, so then this happens:

broadcast [data v] and send [message name] :: events

I'd use “with data:” instead:

broadcast [message v] with data: [cool idea! support] :: events
DarthVader4Life
Scratcher
1000+ posts

Add arguments to the event blocks

FreshTheCat wrote:

DarthVader4Life wrote:

I think it should be called “broadcast and send.”
broadcast [message v] and send (var) :: events
Yeah, this wording is better. But I'd like to change it *evil maniac laughter*
broadcast (message v) with data (data)(data) ➖ ➕ ::events
broadcast (message v) with data (data)(data) ➖ ➕ ::events
the minus-plus part was inspired by makecode, please tell me the minus and plus actually show up
It shows up.
Also, you did add in the multi-argument aspect of this suggestion, so not a complete ninja.
“with data” is probably the best simple wording to use, aside from maybe using “input(s).”
NewRAF
Scratcher
100+ posts

Add arguments to the event blocks

Support, removes some needs for temporary variables
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

Bump
d016
Scratcher
100+ posts

Add arguments to the event blocks

DarthVader4Life wrote:

-snip-
Also, you did add in the multi-argument aspect of this suggestion, so not a complete ninja.
“with data” is probably the best simple wording to use, aside from maybe using “input(s).”

I feel like “inputs” might be too confusing for some scratchers. It doesn't really matter if we can send multiple data pieces; even just one CSV value would be enough for 99% of all the problems this suggestion solves
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

bump
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

d016 wrote:

DarthVader4Life wrote:

-snip-
Also, you did add in the multi-argument aspect of this suggestion, so not a complete ninja.
“with data” is probably the best simple wording to use, aside from maybe using “input(s).”

I feel like “inputs” might be too confusing for some scratchers. It doesn't really matter if we can send multiple data pieces; even just one CSV value would be enough for 99% of all the problems this suggestion solves
What is a CSV value again?
d016
Scratcher
100+ posts

Add arguments to the event blocks

Kanyata wrote:

-snip-
What is a CSV value again?

It's, when, you, seperate, a, list, of, values, with, commas., In, fact;
CSV, stands, for:, Comma, Separated, Value;
FreshTheCat
Scratcher
500+ posts

Add arguments to the event blocks

Bump
sandetsun
Scratcher
45 posts

Add arguments to the event blocks

This is a great idea, and like newraf said it would definitely remove some unneeded temporary variables
Feels like a global custom block
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

Bump
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

sandetsun wrote:

This is a great idea, and like newraf said it would definitely remove some unneeded temporary variables
Feels like a global custom block
this is different from a global custom block because each sprite could do their own thing when they receive the message
CodeComet6161
Scratcher
1000+ posts

Add arguments to the event blocks

when I receive [ v] (Argument1::events)@delInput@addInput <Boolean1::events>@delInput@addInput::events hat
broadcast ( v) []@delInput@addInput <>@delInput@addInput::events
broadcast ( v) []@delInput@addInput <>@delInput@addInput and wait ::events
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

CodeComet6161 wrote:

when I receive [ v] (Argument1::events)@delInput@addInput <Boolean1::events>@delInput@addInput::events hat
broadcast ( v) []@delInput@addInput <>@delInput@addInput::events
broadcast ( v) []@delInput@addInput <>@delInput@addInput and wait ::events
This is an interesting take, almost like custom blocks
Kanyata
Scratcher
94 posts

Add arguments to the event blocks

Bump
FreshTheCat
Scratcher
500+ posts

Add arguments to the event blocks

Bump
FreshTheCat
Scratcher
500+ posts

Add arguments to the event blocks

Buts
TimothyLawyer
Scratcher
1000+ posts

Add arguments to the event blocks

Kanyata wrote:

CodeComet6161 wrote:

when I receive [ v] (Argument1::events)@delInput@addInput <Boolean1::events>@delInput@addInput::events hat
broadcast ( v) []@delInput@addInput <>@delInput@addInput::events
broadcast ( v) []@delInput@addInput <>@delInput@addInput and wait ::events
This is an interesting take, almost like custom blocks
The New Message window could be changed to be more like Make a Block. Then choosing the message in the broadcast (or when i receive) block could change that block to have the custom data inputs of that message. ◂ ▸ or - + wouldn't be necessary.

broadcast [message with inputs v] with [] []:: events

broadcast [message with inputs v] with [cake] (peppermint bark) :: events

when I receive [message with inputs v] with (input 1 :: events) (input 2 :: events) :: events hat

broadcast [message without inputs v]

when I receive [message without inputs v]

Powered by DjangoBB