Actions#

Act#

The Act block is used to act sad, happy, or crazy by having the 123 Robot perform a sequence of drive, turn, and sound behaviors.

  act [sad v]

Choose which behavior for the 123 Robot to use:

  • sad - The 123 Robot will drive in reverse, turn left, then right, play an ‘uh oh’ sound, and then will drive forward to mimic a sad behavior.

  • happy - The 123 Robot will turn right 360 degrees and play a laughing sound to mimic a happy behavior.

  • crazy - The 123 Robot will turn left in a circle, and then turn right in a circle, all while playing a ‘loopy’ sound to mimic a crazy behavior.

123 Robot action selection interface showing options for sad, happy, and crazy behaviors with corresponding actions.

In this example, the 123 Robot will act happy.

  when started :: hat events
  act [happy v]