Step 16: Adding Saber Hum Sound

Goal:


Now we need to add the sound that plays when the saber is idle and our app is ready to go!

Steps:

  1. From AccelerometerSensor, place an AccelerationChange block.
  2. From Control, place an IF/THEN block.
  3. From Variables, attach a get block to the IF portion of the IF/THEN block and set it to saberOn.
  4. From saberHum1, place a set SaberHum1.Source block inside of the THEN portion of the IF/THEN block.
  5. From SaberHum, place a Play block inside of the THEN portion of the IF/THEN block.
  6. Now that our Project is done, download it to your phone by following the steps in our Introduction video.

Code: