Discuss Scratch
- Discussion Forums
- » Suggestions
- » custom c blocks
- hypercode96
-
Scratcher
100+ posts
custom c blocks
when creating a custom block, they could add a option for block input
that would be nice
that would be nice
- 235x
-
Scratcher
100+ posts
custom c blocks
I am not sure if I understand the question, is this about the
Or could you give some example code that would use this?
defineblock?
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.
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
(#3)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:
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.
define repeat {block::custom-arg} (number) times
repeat (number::custom-arg)
block::custom-arg
endLast edited by han614698 (Dec. 9, 2024 21:50:53)
- hypercode96
-
Scratcher
100+ posts
custom c blocks
(#3)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:
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.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
}::customLast edited by 8to16 (Dec. 9, 2024 17:41:19)
- hypercode96
-
Scratcher
100+ posts
custom c blocks
mockupomg yes exactlydefine block name{script::custom}
repeat (10)
script::custom
end
block name {
move (10) steps
}::custom
- 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
Couldn't you just create a new custom block? And remake the example script asno that's differentdefine block name
repeat (10)
script::custom
end
define script
move (10) steps
- Emeraldore12
-
Scratcher
100+ posts
custom c blocks
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
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.
- Discussion Forums
- » Suggestions
-
» custom c blocks