Step 11: Coding the Lightsaber On (Part 5)

Goal:


Now that our lightsaber blade is drawn on the screen lets add some sound effects.

We want the phone to vibrate and then play one of our sounds.

Steps:

  1. From SaberOn, place a Vibrate millisecs block below the DrawLine block.
  2. From Math, attach a 0(zero) block to the end of the Vibrate millisecs block, and set it to 500.
  3. From SaberOn, place a Play block.

Code: