Code Snippet

Repeat

Repeat a sequence of instructions to make Ohbot look scared.

The Repeat blocks

About this snippet

What if we wanted Ohbot’s eyes to pan left and right quickly to look scared? One way would be to create a long sequence of set eyeturn to commands. A more efficient way to achieve the same thing would be to repeat a section of the code.

Download

  1. Click the download button below.
  2. In the Ohbot App, on the File menu select ‘Open Ohbiverse Download’.
  3. Find the downloaded file and click Open.
Download snippet
Repeat — Code Snippet | Ohbot