In the final steps, we will be creating home base for our sphero! Under the events tab, grab an "on charging" block, notice it does not look like other blocks, it only connects from the bottom not the top. From the lights tab, grab a "main LED" block and set the color to green then connect it to the "on charging". The next block is a play sound block, you will use the "notification" sound under the "Game" tab and put it under the "main led" block. Now take the "speak" block, found under the "sound" tab, and have it say "mission complete." Finally, add a "exit program."
Inside the comparison block, you will be comparing the time elapsed since the start of the program with a number. The number you chose will represent how many seconds the person will have to get the sphero to its home. To get the time elapsed, go to the sensors tab and drag the "time elapsed" block inside the left bubble of comparison block the and the right bubble is where you will type the time limit. For our activity purposes I will be doing "10"
In this step, you will be adding if statements. Add three if then blocks INSIDE of the loop until block. Make sure they are one after another. If you get confused, just follow images. After instructions are done, all if statements need a comparison block. The first if statement will have the ">" greater than sign. The second and third if statement will have the ">=" greater than or equal to sign.