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

Doodles often combine sound and visual effects, to create an exciting animation.

In this video, you will program a sprite to play a sound, while it disappears.

To start, select a sprite to program.

This example uses a G, but you can use any sprite you'd like.

Then select the Looks menu, Click, hold, and drag out a change color effect by block.

This block includes many different effects to choose from.

To make a sprite disappear, use the ghost effect.

Click the block to see what it does.

Whoa, each click makes the sprite disappear a little more.

To make the sprite reappear, click the stop sign.

Select the Control menu, click, hold, and drag a repeat block around the change effect by block.

it runs the change effect block 10 times.

Click the block to run.

Holy cow, the sprite disappeared!

To make the sprite reappear, using a code block, select the Looks menu, and add a clear graphic effects block.

Click the block stack a few times.

Great!

This example uses 105, but use values that work for you.

Select the Sounds tab, and choose sound from library.

Select a sound.

(upbeat music)

(singing)

Then, select the Sound menu, drag out a play sound block, and place it on top of this stack.

Click the block stack to run.

(singing)

You did it!

Select the Events menu, this example uses a when key pressed block, but you can use any event you like.

You could run this code when you click the flag, or click the sprite.

To copy this code to other sprites, click, drag, and drop the code onto another sprite.

Check the sprite to check that it copied correctly.

(upbeat music)

Then, run the code.

(singing)

Once you finish these steps, return to this page to select another video.

Choose an Add-On
Switch Costume
Change the style of a letter each time it's clicked.
Say Something
Tell a story with talking letters.
Add Backdrop
Add an image behind the logo.
Change Color
Create an interactive logo by changing letter colors when a key is pressed.
Edit, Draw or Add Letters
Edit, draw, or add an image to change how a letter looks.
Chase
Turn your logo into a game where a letter chases the mouse pointer.
Change Scene
Add a button that changes the scene behind your logo.
Spin
Make a letter spin.
Jumble Letters
Make your letters randomly move across the screen.
Disappearing Sprites
Play a sound as a letter disappears.
Dance Whirl
Make your letters whirl to music.
Bouncing Sprites
Animate your letters to make them bounce.
Next arrow_forward
Instructions
  1. Watch the introduction video.
  2. Open the Starter Project below.
  3. Return to this page and watch more videos to customize your Valentine's Day logo.
Attributions
  • "Google Doodle Team Q&A - Your Questions Answered!" by Nat & Friends (https://www.youtube.com/watch?v=IglWB66vn7g) -- Licensed by Standard Youtube License (https://www.youtube.com/static?template=terms)