Page 67 - Dig_CodeAI_V2.1_Class_7
P. 67
3 Type the name
of your project.
4 Click on the
Create button.
7 Type a name for the variable.
6 Click on the
Make a Variable
button.
5 Click on the
Variables blocks
category.
8 Click on the Ok button.
The variable is created with the specified name (in our case it is a) and two new blocks:
Block Name Description
set to Assign a value to a variable.
Increase or decrease the value of a
change by
variable by a specified amount.
9 Drag the set to block and
drop it inside the on start block.
10 Change the value from 0 to
10. The variable a is initialised.
More on MakeCode Arcade 65

