Discuss Scratch

wizliu818
Scratcher
22 posts

How do you use the my blocks

When you make a block how do you use it?
Cutie_Pooge
Scratcher
500+ posts

How do you use the my blocks

You can either click individual blocks, good for debugging or you can attach all blocks to
whenclicked
I would try to limit my usage to only 1 green flag clicked hat block though, otherwise you may have glitches which you need to double click the green flag to fix.
hedgehog_blue
Scratcher
1000+ posts

How do you use the my blocks

Your question isn't quite clear, but here's some information about how custom blocks work that will hopefully help with whatever you want to know. When you create a custom block it will appear in the “my blocks” section for you to use in your project, and there will be a “define” block where you can add code for what the block does. Basically, wherever you use the custom block, the code under the define block is substituted. You can make your own blocks take in inputs, by adding them when creating or editing the block. To define how the inputs affect the code, you can drag out the inputs out of the define block into the places where they're used in the code below. Then, when you use your custom block with things put into the inputs, those things are substituted in place of the inputs in your custom block definition.
wizliu818
Scratcher
22 posts

How do you use the my blocks

Alright thanks!

Powered by DjangoBB