In this video we will show you a simple way to animate a character in scratch.
By the end you will also learn to create a new costume and to add sound to your project.
See this animation. This is what we are going to do.
A talking penguin.
What is the penguin doing here?
As you can see here the penguin makes sound by opening and closing it’s mouth.
Let us see how to create this project.
As always first open the scratch desktop app.
Remove the cat as we do not want cat sprite for this project.
First step is to set the background. Select the background. I am selecting arctic.
To know more about adding background, watch our Learn Scratch Part 2 video.
Next step is to choose the sprite. Select penguin sprite. There are 2 penguins. I am going to select the second penguin.
This penguin has 4 costumes. Penguin -2a, 2b, 2c and 2d.
We will use penguin 2a and 2b in this project.
Go to looks block.
Drag ” switch costume to” block and from the drop down menu select penguin 2b.
Go to control block and choose wait block. You can change the time to 0.5 seconds.
Now again drag ” switch costume to” block and from the drop down menu select penguin 2a.
Click on the instruction set and observe.
To add sound, go to sounds block.
Drag and drop “start sound “ block as shown and select chirp from the drop down menu.
Let us see how this set of instructions work.
Remember the instructions get executed one by one from top to bottom in the order you put.
So first it starts the sound, then changes costume to penguin 2b, waits for 0.5 seconds and then changes the costume to penguin 2a.
Now let us see why wait block is required. Remove the wait block and observe.
Are you able to see the costumes changing very fast and we are unable to see that change.
The computer executes instructions very fast. And it is very difficult for us to observe the change. That is the reason we use wait block.
Wait block helps to pause and the costume do not change too quickly.
Increase and decrease the wait time and observe the character.
To complete the project, add an event.
We are adding when this sprite clicked.
So whenever you click the penguin sprite, it starts the sound, changes costume to penguin 2b, waits for 0.5 seconds and then changes the costume to penguin 2a.
You can go to full screen view mode and have some fun with your penguin!
Now try this animation.
This is barking Dog.
Follow the instructions given for the talking penguin.
Let us do another animation.
Frog catching an insect.
Frog has 3 costumes, one with the insect, another putting the tongue out and the other one is catching the insect.
To add sound, go to the sound and search sound.
You can see different sounds here. Keep the cursor on the play button to hear the sound.
Select animals sound. Then select jungle frogs sound.
Click on the instruction set to observe.
In our project, we want the frog to come back to the same position after catching the insect. If we use costume Frog 2a, it has an insect. We don’t want the insect after catching the insect.
So let us create a new costume.
Create duplicate of frog 2a by right clicking and selecting duplicate..
Rename this costume as frog d.
Now to delete the insect we have to edit the this costume. Pick the eraser and erase the insect. Now we have a new costume.
Let us add this to our program.
If the music is too long and you want to stop, then use stop all sounds block. This is optional.
Add an event block to complete the project.
Go to the full screen mode and have fun!
Like this, try to animate other characters and share about your project with us. You can post your comment in the comment box or send a mail to [email protected]
Thank You.
#Coding #Scratch #Animation