How to customize scratch blocks

Time: 2019-11-22Source: Huajun Software TutorialAuthor: Xiaoxin

It is estimated that many friends are not familiar with the operation of scratch custom building blocks, and the editor below will explain how to customize scratch building blocks. I hope it will be helpful to you.

Open the scratch software, create a new "pencil" character, and set the shape center of the pencil to the tip;

1.png

In the building block area, click - More Building Blocks - to create new building blocks;

2.png
3.png

Fill in the name of the building block and add parameters to the building block. There are four parameters that can be added, namely: numeric type, string type, Boolean value, and text. Add numeric type here;

4.png

At this time, new building blocks are newly produced, and scripts need to be added to the new building blocks;

5.png

Then add a script to the new building block so that the new building block has the function of drawing squares;

6.png

Through the brush script, the new customized script can be reflected; parameters can be entered for the new script;

7.png
8.png

Finally, the new building blocks are formulated, and they can be used in other scripts like other building blocks in the future. It can be seen that custom building blocks can still make the script clearer;

9.png

Above, I have shared with you how to customize scratch’s building blocks. Friends in need should hurry up and read this article.

Related articles更多>>

Popular recommendations