Skip to main content

Combining Drives and Turns

Combine [Drive for] and [Turn for] blocks to code the VR Robot to drive and turn on the Grid Map Playground

VEXcode VR Moving and Removing Blocks Tutorial icon.

  • View the Moving and Removing Blocks Tutorial
  • Select the Grid Map Playground.
  • Drag a [Drive for] block into the Workspace and connect it to the {When started} block. Next, add a [Turn for] block to the project after the [Drive for] block. Run the project. What happened? How did the VR Robot move?
  • Add blocks to your project to make the VR Robot drive in a square.
    • For an extra challenge, change the size of the square. Can you make the VR Robot drive in a larger square? What about a smaller square?

Helpful Hints

Listen for a ‘click’ sound when blocks are connected to a stack as you are building your project. Blocks that are not connected to the stack will not run.

In this project, both blocks will run.

Example VEXcode VR Blocks project showing two movement blocks connected and below a When Started block. A green check mark indicates this is correct.

In this project, only the [Drive for] block will run. The [Turn for] block will not.

Example VEXcode VR Blocks project showing a movement block below a When Started block, with another movement block disconnected from the stack. A red X indicates this is wrong.