Discuss Scratch

MarxNova
Scratcher
100+ posts

Custom c blocks and hat blocks

How do you make this 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

WatermelonzGames wrote:

when green flag clicked
say [Hello!] for (2) secs
when someone says Hello!

Can I make a script that does this
If you make a custom stack block, then yes.

red link
[url=redlink.com][color=red][u]red link[/u][/color][/url]
ninjaMAR
Scratcher
1000+ posts

Custom c blocks and hat blocks

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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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{
blocks :: pen ::
and another one:
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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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?
de​fine {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

gilbert_given_189 wrote:

Are you suggesting to make a custom C-block? How would it function? Like this?
de​fine {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
Yeah! OH! i forgot to tell you this is my first forum post at all!
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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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

Mar10Josh wrote:

edit: i do not need an run block
You can't make custom c blocks without a run block.


This is Maximouse's signature. Learn more about signatures.
Mar10Josh
Scratcher
100+ posts

Custom c blocks and hat blocks

Maximouse wrote:

Mar10Josh wrote:

edit: i do not need an run block
You can't make custom c blocks without a run block.
Oh but that is just… so.. uh.. an state 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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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

AmberdroptheWarrior wrote:

You can have an end block, just use this:
stop [all v]
or set it to this:
stop [this script v]
do you need it for an non-attachable block or an c block?

hey is this an evil kumquat? yes? no? maybe so?

when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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

Mar10Josh wrote:

Oh but that is just… so.. uh.. an state block
But what if it's just an single block input? does it need an run block too or?
I don't understand what you mean by one input. And what do you mean by a state block?

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

gilbert_given_189 wrote:

Mar10Josh wrote:

Oh but that is just… so.. uh.. an state block
But what if it's just an single block input? does it need an run block too or?
I don't understand what you mean by one input. And what do you mean by a state block?
define run [c block input v]
idk what the blocks are :: control ::
what are the blocks to make an run block?!?

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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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

Mar10Josh wrote:

define run [c block input v]
idk what the blocks are :: control ::
what are the blocks to make an run block?!?
That block is special for custom c-block. It executes code that is contained inside the insert of the c-block.
de​fine {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

gilbert_given_189 wrote:

Mar10Josh wrote:

define run [c block input v]
idk what the blocks are :: control ::
what are the blocks to make an run block?!?
That block is special for custom c-block. It executes code that is contained inside the insert of the c-block.
de​fine {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.
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

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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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

Mar10Josh wrote:

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
Wait, are you suggesting to make a shape-shifting block? How would it function?

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

gilbert_given_189 wrote:

Mar10Josh wrote:

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
Wait, are you suggesting to make a shape-shifting block? How would it function?
i'm not suggesting a shape shifting block silly, its an button in the block maker to switch the type

hey is this an evil kumquat? yes? no? maybe so?

when ([shift v] + [down v] :: sensing) pressed and [text v] is selected? :: hat events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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 events
scroll down :: list
can you pls bring scratch 1.4 to 64bit plss st

(*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.

Powered by DjangoBB