3.5.1 Creating blocks for different characters

View

Scratch allows you to create your own blocks. You can do this by using the Make a Block feature. In the following project you will learn to create your own blocks that define two behaviours for two different characters.

 

Activity: Creating custom blocks

Step 1: Add two Sprites to your project, either by selecting them from the sprite library or by uploading them.

 

3. 14

Figure 88: Jumping Sprite

 

Step 2: Click on the Make a Block button in the My Blocks category to create and name your block.

Figure 89: Jump block creation

Step 3: Add blocks under the Define block to control what your custom block will do.

Figure 90: Jump block definition

Step 4: Experiment with using your block to program your characters’ behavior.

Figure 91: Use of the Jump block

Step 5: Repeat


Last modified: Wednesday, 29 September 2021, 12:53 PM