In this screen cast,
you'll look at the starter project code,
then choose sound effects and costumes.
The starter project gives you some code to start with
at the beginning, however, all the blocks that are used
are ones you've learned before.
You'll get a chance to customize some of the starter code
to make the project your own.
First, run the starter project.
Then, look at the code for the projectile sprite,
which is the sprite
that will bounce off of your main character.
The code reads, when the flag is clicked,
set the starting point for the projectile sprite
on the right side of your screen,
then forever move the projectile sprite
to the left 10 steps.
If it it hits the edge of the screen,
then call the procedure make noise.
The block make noise doesn't do anything
because you need to add code for the sound,
which will be in the next screen cast.
Next, a glide walks into projectile sprite
in a random direction, and then changes
into a different object by switching costumes.
In this example, a donut or a dog.
The loop then starts over.
The projectile sprite moves to the right of the screen,
and heads towards the main character again.
All this is accomplished by the starter code
already included in your program.
But you can customize it by adding sounds
and costumes you like for your projectile sprite.
You already added a sprite to your program.
But the projectile sprite is probably passing right by it.
To fix this, select the projectile sprite,
then change the touching block drop down
to show the name of the sprite you added.
Now when the projectile sprite hits the main character,
it bounces away.
Next, click on the costumes tab.
The code switches the costume of the bounce sprite
to make it look like a totally different object
each time it shows up on stage.
Click the choose costume from library button
to add two more costumes.
You can delete the donut and the dog
and replace them with different costumes.
You should now have four total costumes.
Next, click on the sounds tab
and choose four sounds the projectile sprite will make
when it hits your main character.
Make sure you still have the projectile sprite selected
when you are choosing your sounds.
Now it's your turn.
Change the touching block
to the name of your main character sprite
to make the projectile sprite
bounce off of the main character.
Add two more costumes to the projectile sprite,
and add four sounds that you will use
in the next screen cast.
Sign in to save your project and track your progress.