Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Transcript

In this add-on, you will play a tune and use graphic effects like mosaic and color to make your program more entertaining. To start, add a new backdrop. Click the stage and the backdrops tab. Choose a backdrop from one of the options.

Next change this backdrop using an effect. From the “looks” menu, drag the “change effect” block into the scripts area. Click the dropdown to see the different choices.

Select an effect and click the block to try it out. To reset the backdrop, click the “clear graphic effects” block in the palette.

Select “color,” and click on the block. This block changes the stage’s color.

Make this effect happen over and over with a loop. A loop is a block that repeats the actions inside it. Click the control menu. Drag a “forever” loop around the “change effect” block. Click the stack to try it out . The colors keep on changing!

To run this code at the start of the program, place a “when flag clicked” block at the top of the stack. Make your project more exciting by adding a sound. Click the sounds tab and “choose sound from library.” Click the play button to listen to a few sounds. When you find a sound you like, click on it, and select “ok.” Select the scripts tab, and from the “sound” menu, drag a “play sound until done” block into the script editor. From the dropdown, select the sound you chose. Click on the block. Nice. Drag out a “forever” loop to make the sound repeat. Now that’s a sweet beat! If your sound loop doesn’t sound right, make sure you used a “play sound until done” block. The “play sound until done” block will play the sound all the way through before running any other code. The “play sound” block, on the other hand, will run the next block while the sound is still playing, which may sound awkward in a loop. Finally, add a “when flag clicked” block to the top of this stack. Click the flag to start your program. The backdrop color changes AND the sound you added repeats over and over. Now, it’s your turn: Change the backdrop’s look by selecting the “stage" and using the “change effect” block. Add a sound by clicking on the “sounds” tab and using a “play sound until done” block.

Add “forever” blocks to each block stack to run the code over and over.

Finally, add “when flag clicked” blocks to the top of the block stacks.

Choose an Add-On
Appearing Objects
Thought Bubble (Part 1 of 2)
Thought Bubble (Part 2 of 2)
Color Craze
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!