Beginner Coding with Blocks
Chapter
>
Level

Variables
Number Variables

Objective

Collect planks and store into variables in order to complete level.

The storehouse is a mess, help pick up all these planks scattered about.

To store materials easier you need to use variables, a variable is a name you can assign a value which you can use to more easily address it later on.

Walk across the map over the planks in order to pick them all up. After collecting all materials, drag and drop the set variable block from the variables menu in the toolbox.

Block Diagram

On the set variable block, click the dropdown to assign the variable to planks .

Block Diagram

Open the Math menu in the toolbox and drag and drop the number bubble on the top of the menu and place it on the set variable block.

Block Diagram

Click on the bubble and set the value to the number of planks you've gathered which is displayed on the top right corner of the screen.

Block Diagram

Once this is done you have successfully set the planks variable to the correct value you will complete the level.

Code book