Page 41 - RoboGenius Pro C6
P. 41
STEP - 3 Drag and drop the Repeat Times block from the Control blocks and set the value to
9 and snap the following blocks inside it:
Drag and drop the Move block from the Modify blocks and add the variable
height block to the Z placeholder.
Drag and drop the Add Box block from the Shapes blocks and customise it with
a width of 20, length of 20 and height of 10.
Drag and drop the Change by block from the Variables blocks and set its value
to 10.
STEP - 4 Drag and drop the Add Roof block from the Shapes blocks and place it below the
Repeat Times block.
STEP - 5 Add the Move block from the Modify blocks and place it below the Add Roof block
and set its Z to 90.
Add W 30 L 30 H 10 edge 0 Edge Steps 10
Repeat 9 Times
Move: X: 0 Y: 0 Z: height
Add W 20 L 20 H 10 edge 0 Edge Steps 10
Change height by 10
Add Tinkercad Codeblocks can be
SMART
Move: X: 0 Y: 0 Z: 90 SPARK used to simulate robot behavior
before building a real one.
You will get the final output as shown:
CHALLENGE CHAIN
Suppose you want to build a staircase. Which blocks would you need along with Repeat () Times block?
Introduction to Codeblocks in Tinkercad
39

