Discuss Scratch

hypercode96
Scratcher
100+ posts

custom c blocks

when creating a custom block, they could add a option for block input
that would be nice
235x
Scratcher
100+ posts

custom c blocks

I am not sure if I understand the question, is this about the
define 
block?

Or could you give some example code that would use this?
50_scratch_tabs
Scratcher
1000+ posts

custom c blocks

Name one thing this would be useful for.

Also, how would you use this? You call the block that's passed to the original function? I confused myself just by writing that. No support, too confusing.
han614698
Scratcher
1000+ posts

custom c blocks

50_scratch_tabs wrote:

(#3)
Name one thing this would be useful for.

Also, how would you use this? You call the block that's passed to the original function? I confused myself just by writing that. No support, too confusing.
This is how it would work. Now obviously practical uses for this would be more complex, as this is a black in itself, but you get the point:

define repeat  {block::custom-arg} (number) times
repeat (number::custom-arg)
block::custom-arg
end

Last edited by han614698 (Dec. 9, 2024 21:50:53)

hypercode96
Scratcher
100+ posts

custom c blocks

han614698 wrote:

50_scratch_tabs wrote:

(#3)
Name one thing this would be useful for.

Also, how would you use this? You call the block that's passed to the original function? I confused myself just by writing that. No support, too confusing.
This is how it would work. Now obviously practical uses for this would be more complex, as this is a black in itself, but you get the point:

define repeat  {block::custom-arg} (number) times
repeat (number::custom-arg)
block::custom-arg
end[/quote]
yes thats what i had in mind
8to16
Scratcher
1000+ posts

custom c blocks

mockup

define block name{script::custom}
repeat (10)
script::custom
end

block name {
move (10) steps
}::custom

Last edited by 8to16 (Dec. 9, 2024 17:41:19)

hypercode96
Scratcher
100+ posts

custom c blocks

8to16 wrote:

mockup

define block name{script::custom}
repeat (10)
script::custom
end

block name {
move (10) steps
}::custom
omg yes exactly
Oisthebestletter
Scratcher
100+ posts

custom c blocks

This could confuse some people, but overall support. Scratch needs to level up from toddler tool.
235x
Scratcher
100+ posts

custom c blocks

Couldn't you just create a new custom block? And remake the example script as
define block name
repeat (10)
script::custom
end


define script
move (10) steps

Last edited by 235x (Dec. 11, 2024 09:34:16)

hypercode96
Scratcher
100+ posts

custom c blocks

235x wrote:

Couldn't you just create a new custom block? And remake the example script as
define block name
repeat (10)
script::custom
end


define script
move (10) steps
no that's different
Emeraldore12
Scratcher
100+ posts

custom c blocks

Oisthebestletter wrote:

This could confuse some people, but overall support. Scratch needs to level up from toddler tool.

I agree that the fact that scratch is for ALL ages is kind of dumb, three-year-olds probably will be as confused as any inexperienced child. I know because I have seen it before.

Last edited by Emeraldore12 (Dec. 11, 2024 21:04:56)

Paddle2See
Scratch Team
1000+ posts

custom c blocks

ihavenocluewhythisis wrote:

dupe https://scratch.mit.edu/discuss/topic/790098/
Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place.

Please use the existing topic in the link above.

Powered by DjangoBB