Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you use the my blocks
- Cutie_Pooge
-
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
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
-
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.
- Discussion Forums
- » Help with Scripts
-
» How do you use the my blocks