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

One way to animate your project is to make a sprite disappear.

For Earth Day, you can make your project show the importance of protecting animals by telling a story of an animal disappearing.

To start, select a sprite to program.

You can use any sprite you'd like.

Next, program the sprite to disappear.

Select the looks menu.

This menu contains blocks that change a sprite's appearance.

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.

Next, program the computer to repeatedly run this block.

Select the control menu.

Click, hold and drag a repeat block around the change effect by block.

The repeat block is a type of loop.

It runs the change effect block 10 times.

Click the block to run.

Holy cow, the sprite disappeared.

To change the speed of the effect, tinker with the values in the repeat and change effect by blocks.

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

Next, use a say block to celebrate what is special about this animal or to ask people to save the environment so it can avoid becoming extinct.

Select the looks menu.

Click, hold and drag out a say for two seconds block.

This example uses I'm a national treasure in China, but use the words that work best for your story or project.

Click the block stack to run.

You did it.

Then, add an event to tell the computer when to run this code.

Select the events menu.

This example uses a when this sprite clicked block, but you can use any event you like for your Earth Day logo.

You could run this code when you press a key, for example, or click the flag.

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

Click the sprite to check that it copied correctly then run the code.

Copy this code to as many sprites as you like.

Now it's your turn.

Select a sprite.

Add a repeat and change effect by block.

Change the value in the change effect by block to ghost.

Add a say for two seconds block to the top of the block stack.

Add an event like when this sprite is clicked.

Copy this code to as many sprites as you like.

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

Choose an Add-On

Say Something

Tell a story with talking letters.

Add Backdrop

Add an image or new landscape behind the logo.

Change Color

Create an interactive logo by changing letter colors when a key is pressed.

Bouncing Sprites

Animate your letters to make them bounce.

Change Scene

Add a button that changes the scene behind your logo.

Disappearing Sprites

Make a letter disappear.

Switch Costume

Change the style of a letter each time it's clicked.

Instructions
  1. Watch the introduction video.
  2. Open the Starter Project below.
  3. Return to this page and watch more videos to customize your Earth Day logo.
Attributions
  • "Doodle 4 Google 2012- Behind the Scenes with the Doodle Team" by Google (https://www.youtube.com/watch?v=i6RWpg7oVgc) -- Licensed by Standard Youtube License (https://www.youtube.com/static?template=terms)
  • ® ‘WWF’ and ‘World Wildlife Fund’ are WWF Registered Trademarks. © 1986 Panda Symbol WWF.
  • "Living With Asian Elephants" by World Wildlife Fund (https://www.worldwildlife.org/videos/living-with-asian-elephants) -- Licensed by CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)