Code Snippet

Sleep

Use a variable to make Ohbot become sleepy.

The Sleep blocks

About this snippet

Variables are useful whenever a value needs to be stored. They are easy to understand if we think of them as a box into which only one number or string of letters (a word) can be placed. We can use variables to give Ohbot needs. Try this example to make Ohbot become sleepy, then wake when the spacebar is clicked.

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
Sleep — Code Snippet | Ohbot