Discuss Scratch
- Discussion Forums
- » Suggestions
- » Custom c blocks and hat blocks
- MarxNova
- Scratcher
100+ posts
Custom c blocks and hat blocks
How do you make this block:
maybe even create a cap block…
When someone says "Nova"into a hat block with a custom color?
maybe even create a cap block…
ABOSO Guy
30+ Characters!
- WatermelonzGames
- Scratcher
25 posts
Custom c blocks and hat blocks
when green flag clicked
say [Hello!] for (2) secs
when someone says Hello!
Can I make a script that does this
Last edited by WatermelonzGames (May 19, 2020 13:08:15)
- space_elephant
- Scratcher
500+ posts
Custom c blocks and hat blocks
If you make a custom stack block, then yes.when green flag clicked
say [Hello!] for (2) secs
when someone says Hello!
Can I make a script that does this
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
when all sprites are clicked :: custom cap
add (clicked sprites) to [caps v v]
Last edited by Mar10Josh (June 8, 2020 02:15:33)
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
Hi! If i was exact, C-shaped blocks and non-attachable blocks weren't makeable, I would like to have that, and here is an example:
c block{and another one:
blocks :: pen ::
end :: control :: :: cap ::also option select blocks (state blocks?):
State block [select here... v] :: pen ::
Last edited by Mar10Josh (June 11, 2020 06:53:55)
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- gilbert_given_189
- Scratcher
500+ posts
Custom c blocks and hat blocks
Are you suggesting to make a custom C-block? How would it function? Like this?
edit: i need to fix up a lot of errors i made
define {custom c block! (number :: custom) (string :: custom) <boolean :: custom>{
}foo{
}bar{
} :: custom}{run [ v] :: custom cap} :: custom hat
if <(number :: custom) = (string :: custom)> then
run [custom c-block v] :: custom cap
else
if <<boolean :: custom> = <not <>>> then
run [foo v] :: custom cap
end
run [bar v] :: custom cap
end
when green flag clicked
custom c block! () [] <>{
}foo{
}bar{
} :: custom
edit: i need to fix up a lot of errors i made
Last edited by gilbert_given_189 (June 11, 2020 05:51:38)
If you see a line above this text, it means that below this text is my signature.
This place is just a memory to me, I may return occasionally but I'm busy.
I guess I'm an ATer now.
I think I may have seasoned my posts a bit too much.
Colored Pencil is supposed to color the siggy, but Scratch says it's too big.
There is nothing here…
don don pan pan
dondo pan pan
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
Yeah! OH! i forgot to tell you this is my first forum post at all! Are you suggesting to make a custom C-block? How would it function? Like this?define {custom c block! (number :: custom) (string :: custom) <boolean :: custom>{
}foo{
}bar{
} :: custom}{run [ v] :: custom cap} :: custom hat
if <(number :: custom) = (string :: custom)> then
run [custom c-block v] :: custom cap
else
if <<boolean :: custom> = <not <>>> then
run [foo v] :: custom cap
end
run [bar v] :: custom cap
end
when green flag clicked
custom c block! () [] <>{
}foo{
}bar{
} :: custom
edit: i need to fix up a lot of errors i made
edit: i do not need an run block
Last edited by Mar10Josh (June 11, 2020 06:48:33)
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- Maximouse
- Scratcher
1000+ posts
Custom c blocks and hat blocks
edit: i do not need an run blockYou can't make custom c blocks without a run block.
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
Oh but that is just… so.. uh.. an state blockedit: i do not need an run blockYou can't make custom c blocks without a run block.
But what if it's just an single block input? does it need an run block too or?
Last edited by Mar10Josh (June 11, 2020 20:19:10)
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- AmberdroptheWarrior
- Scratcher
100+ posts
Custom c blocks and hat blocks
You can have an end block, just use this:
stop [all v]or set it to this:
stop [this script v]
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
do you need it for an non-attachable block or an c block? You can have an end block, just use this:stop [all v]or set it to this:stop [this script v]
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- gilbert_given_189
- Scratcher
500+ posts
Custom c blocks and hat blocks
n state blockI don't understand what you mean by one input. And what do you mean by a state block? Oh but that is just… so.. uh.. a
But what if it's just an single block input? does it need an run block too or?
If you see a line above this text, it means that below this text is my signature.
This place is just a memory to me, I may return occasionally but I'm busy.
I guess I'm an ATer now.
I think I may have seasoned my posts a bit too much.
Colored Pencil is supposed to color the siggy, but Scratch says it's too big.
There is nothing here…
don don pan pan
dondo pan pan
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
n state blockI don't understand what you mean by one input. And what do you mean by a state block? Oh but that is just… so.. uh.. a
But what if it's just an single block input? does it need an run block too or?
define run [c block input v]what are the blocks to make an run block?!?
idk what the blocks are :: control ::
Last edited by Mar10Josh (June 13, 2020 01:08:26)
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- gilbert_given_189
- Scratcher
500+ posts
Custom c blocks and hat blocks
That block is special for custom c-block. It executes code that is contained inside the insert of the c-block.define run [c block input v]what are the blocks to make an run block?!?
idk what the blocks are :: control ::
define {custom c block! (number :: custom) (string :: custom) <boolean :: custom>{
}foo{
}bar{
} :: custom}{run [ v] :: custom cap} :: custom hat
if <(number :: custom) = (string :: custom)> then
run [custom c block! v] :: custom cap
else
if <<boolean :: custom> = <not <>>> then
run [foo v] :: custom cap
end
run [bar v] :: custom cap
end
when green flag clicked
custom c block! () [] <>{
i will run when ({run [custom c block! v] :: custom cap} :: grey ring) is executed :: grey
}foo{
i will run when ({run [foo v] :: custom cap} :: grey ring) is executed :: grey
}bar{
i will run when ({run [bar v] :: custom cap} :: grey ring) is executed :: grey
} :: custom
The run block only works when used on the define block. When used outside, it does nothing.
If you see a line above this text, it means that below this text is my signature.
This place is just a memory to me, I may return occasionally but I'm busy.
I guess I'm an ATer now.
I think I may have seasoned my posts a bit too much.
Colored Pencil is supposed to color the siggy, but Scratch says it's too big.
There is nothing here…
don don pan pan
dondo pan pan
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
oh… a switch block type button has to be added so you can switch typesThat block is special for custom c-block. It executes code that is contained inside the insert of the c-block.define run [c block input v]what are the blocks to make an run block?!?
idk what the blocks are :: control ::define {custom c block! (number :: custom) (string :: custom) <boolean :: custom>{
}foo{
}bar{
} :: custom}{run [ v] :: custom cap} :: custom hat
if <(number :: custom) = (string :: custom)> then
run [custom c block! v] :: custom cap
else
if <<boolean :: custom> = <not <>>> then
run [foo v] :: custom cap
end
run [bar v] :: custom cap
end
when green flag clicked
custom c block! () [] <>{
i will run when ({run [custom c block! v] :: custom cap} :: grey ring) is executed :: grey
}foo{
i will run when ({run [foo v] :: custom cap} :: grey ring) is executed :: grey
}bar{
i will run when ({run [bar v] :: custom cap} :: grey ring) is executed :: grey
} :: custom
The run block only works when used on the define block. When used outside, it does nothing.
1 would be a normal one
and 2 would be c block
3 is non attachable block
and 4 is state block
oh also thanks for reminding me
Last edited by Mar10Josh (June 14, 2020 01:38:07)
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- gilbert_given_189
- Scratcher
500+ posts
Custom c blocks and hat blocks
Wait, are you suggesting to make a shape-shifting block? How would it function? oh… a switch block type button has to be added so you can switch types
1 would be a normal one
and 2 would be c block
3 is non attachable block
and 4 is state block
oh also thanks for reminding me
If you see a line above this text, it means that below this text is my signature.
This place is just a memory to me, I may return occasionally but I'm busy.
I guess I'm an ATer now.
I think I may have seasoned my posts a bit too much.
Colored Pencil is supposed to color the siggy, but Scratch says it's too big.
There is nothing here…
don don pan pan
dondo pan pan
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
i'm not suggesting a shape shifting block silly, its an button in the block maker to switch the typeWait, are you suggesting to make a shape-shifting block? How would it function? oh… a switch block type button has to be added so you can switch types
1 would be a normal one
and 2 would be c block
3 is non attachable block
and 4 is state block
oh also thanks for reminding me
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.
- Mar10Josh
- Scratcher
100+ posts
Custom c blocks and hat blocks
omg this disscusson is dead rn now
hey is this an evil kumquat? yes? no? maybe so?
when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat eventscan you pls bring scratch 1.4 to 64bit plss st
scroll down :: list
(*n*) // this is laze-y.
<*n* :: sensing> // this is edger
([*O*] :: variables) // kask.
-u- :: #FB9912// this is a "kumquat helper", you know why i put quotes, right... RIGHT?!?
([u v] [n v] [u v] :: control) // this is kumquat killer 2023. i did not know what to name him.