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 the "G," but you can use any sprite you'd like.
Next, program the sprite to disappear.
Then, 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.
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.
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.
To change the speed of the effect, tinker with the values in the “repeat”
and “change effect by” blocks.
This example uses 100 and 5, but use values that work for you.
Next, add a sound to play while this effect happens.
Select the Sounds tab,
and “choose sound from library.”
Select a sound, and click OK.
("bell toll" plays)
Then, select the “Scripts” tab and the “Sound” menu.
Drag out a “play sound” block, and place it on top of this stack.
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 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.
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 “clear graphic effects” block.
Select a sound from the sounds tab, and add a “play sound” block
to the top of the block stack.
Add an event, like “when key pressed.”
Once you finish these steps, return to this page to select another video.
Change the style of a letter each time it's clicked.
Tell a story with talking letters.
Add an image behind the logo.
Create an interactive logo by changing letter colors when a key is pressed.
Edit, draw, or add an image to change how a letter looks.
Turn your logo into a game where a letter chases the mouse pointer.
Add a button that changes the scene behind your logo.
Make a letter spin.
Make your letters randomly move across the screen.
Play a sound as a letter disappears.
Make your letters whirl to music.
Animate your letters to make them bounce.
Sign in to save your project and track your progress.