Professional Documents
Culture Documents
Surprise! animation
Create an animation of a story with a surprise
Get ideas 💭
You will make design decisions and think of a story for your animation with a surprise. Think about what your story
might be, and to get more ideas, See inside example projects in the ‘Surprise! animation — Examples’ Scratch
studio: https://scratch.mit.edu/studios/29075822/
The animation has three parts:
Curiosity
Surprise!
Reaction
Step 2 Create your scene
Animation creates the effect of movement by changing pictures quickly. The first animators carved pictures
out of wooden blocks and used them as stamps. It is much faster to use Scratch to code your animation!
There are people called narrative designers who do storytelling for apps and video games. Digital
storytelling allows everyone to share their stories and creative imaginings with other people.
To change the size of a sprite for part of the project, add code to set size to the size of your
choice. This option is good if you want your sprite to change size in the project.
To change the costume of a sprite for part of the project, add a switch costume to block to your
code and update it to show the costume of your choice:
switch costume to update this for your chosen costume
To hide a sprite at the start of the project, add a hide block to your code:
hide
To change the direction of a sprite for part of the project, add blocks to your code to change the
rotation style and direction:
Then, to save your project, click on File, and then on Save now:
Note: If you are not online or you do not have a Scratch account, you can click on Save to your
computer to save a copy of your project.
Step 3 Show curiosity
Will the object do something to attract attention? How will the character react? You decide! Create the second
part of your animation.
Decomposition is breaking a project down into parts that are smaller and easier to understand. This means
that you can build a project one part at a time until you have completed it. In this step you will focus only on
the curiosity part of your animation.
The object
Choose: If you want the 🎂🎾🎁 interesting object to do something to attract attention, choose what
the object will do.
Add blocks to the end of the 🎂🎾🎁 interesting object’s when green flag clicked setup script.
Jiggle a sprite
repeat 8
turn 15 degrees
turn 15 degrees
turn 15 degrees
turn 15 degrees
color: from 0 to 199 (bigger numbers will wrap around, so 200 is the same as 0)
fisheye: 0 means no effect, bigger numbers cause a bigger ‘fisheye’ effect, and negative
numbers cause a reverse ‘fisheye’ effect
whirl: 0 means no effect, big numbers make a big whirl to the left, and big negative numbers
make a big whirl to the right
pixelate: 0 means no effect, and bigger numbers create more pixels
mosaic: 0 means no effect, and bigger or negative numbers affect the number of copies
brightness: 0 means no effect, numbers up to 100 make the sprite lighter, and negative
numbers down to -100 make the sprite darker
ghost: 0 means no effect, and numbers up to 100 make the sprite more transparent
Try to set the different effect values to see what each one does. Explore how different effect changes
make your sprite look.
Tip: A color effect of 225 is the same as a color effect of 25, so you can keep changing the
colour. For other graphic effects, no other changes will be made after you reach the maximum or
minimum number for the effect.
forever
Use the clear graphic effects block to start again. Clicking on the green flag also clears all
graphic effects.
To set a graphic effect for a sprite when the project is started, place a set graphic effect to
block under a when green flag clicked block:
when clicked
Tip: You can also set and change graphic effects for the Stage.
The character
Get the 🐙👩🦼🦖 main character to show interest in the object. Add blocks to the end of the 🐙👩🦼🦖
main character’s setup script.
If you need the 🐙👩🦼🦖 main character to wait until the 🎂🎾🎁 interesting object has done
something, add a wait block.
You could use say or think blocks, or even use the Text to Speech extension to make the character
talk out loud!
speak Hola
wait 1 seconds
Tip: Make sure that you use a block that has a time value, not a start sound, say, or think block,
otherwise, you will not see the costume change.
The character could be brave and move closer to check out the object.
repeat 20
move 3 steps
move 3 steps
Tip: If you want to use all the costumes that a sprite has, you can just use the next costume block
in a loop.
Tip: Increase the number of steps in each move block to make the sprite go faster. Change the
number in the repeat loop to adjust the distance.
Tip: To make the sprite move backwards, you can use negative numbers, for example, move -3
steps. Or, you can use a point in direction -90 block to change the sprite’s direction before
the sprite moves (-90 points to the left).
Test: Click on the green flag to test your project. The 🐙👩🦼🦖 main character should show curiosity
about the object.
Click on the green flag again. If you changed the 🎂🎾🎁 interesting object or 🐙👩🦼🦖 main
character sprite’s position or looks, you will need to make sure that they are set back to their starting
position or looks when you run the project again.
point in direction 90
show
Tip: All graphic effects are cleared when you click on the green flag, so you don’t need to clear them,
but you might need to set the effects that you want the sprite to have.
Debug:
My animation does not reset properly when I click on the green flag
Check that your project has when green flag clicked scripts for the sprites that need them, and
check that they reset the position, size, and looks for the sprites. For help with this, see the Set the
starting position and looks for a sprite task above.
Step 4 Add a surprise!
Now, you need to add a surprise. What could happen to the object?
Will it turn into another object?
Will it turn into a character?
Will it disappear and reveal another sprite?
You decide! Create the third part of your animation.
Have you written a story with a plot twist or a surprise? Have you watched a show or read a book with an
unpredictable ending? You can use the same methods when you create a digital story or animation.
Select the 🎂🎾🎁 interesting object sprite. Add a script to make the surprise start when you want it
to.
You will need to choose a time delay that works for your project. If you have a character that spends a
long time being curious, you will need to choose a longer delay.
when clicked
The object could play a sound, switch costume, change graphic effects, or change size.
You could add a surprising costume to the sprite, then the sprite could switch costume to reveal it.
You will need to position and resize the added costume in the Paint editor, to match the sprite’s other
costumes.
Tip: If you position a sprite on the Stage and then change its costume, the sprite might appear to
‘jump’ or change size. You will need to position and resize the costumes in the Paint editor so that
they all appear in the right position on the Stage.
You could make the sprite seem to turn into a different sprite — to do this, hide the 🎂🎾🎁
interesting object sprite at the same time as you show another sprite.
show
wait 5 seconds
hide
when clicked
hide
wait 5 seconds
show
Tip: If you make a 🎷👻⚡surprise object sprite show, you will need to make it hide when green
flag clicked.
Test: Click on the green flag. Does the surprise happen at the right time? Does the animation reset
properly?
Debug:
If you need a sprite to be in front of or behind another sprite, you can use layers:
Alternatively, you can use a go to front layer or go to back layer block to position a sprite.
If you want a sprite to always stay at the front or back, use a forever loop to make the sprite
move back to the correct layer if you accidentally move it:
when clicked
forever
If the surprise happens at the wrong time, you can fix that:
You can use switch costume to blocks before and after a say for, think for, play sound, or
wait block to make your character show their feelings.
wait 1 seconds
Tip: Make sure that you use a block that has a time value, not a start sound, say, or think block,
otherwise, you will not see the costume change.
Try to set the different effect values to see what each one does. Explore how different effect changes
make your sprite look.
set whirl effect to 100
Tip: A color effect of 225 is the same as a color effect of 25, so you can keep changing the
colour. For other graphic effects, no other changes will be made after you reach the maximum or
minimum number for the effect.
forever
Use the clear graphic effects block to start again. Clicking on the green flag also clears all
graphic effects.
To set a graphic effect for a sprite when the project is started, place a set graphic effect to
block under a when green flag clicked block:
when clicked
Tip: You can also set and change graphic effects for the Stage.
You can use the blocks in the Text to Speech blocks menu to make your sprites talk out loud.
speak Hola
repeat 20
move 3 steps
move 3 steps
Tip: To make the sprite move backwards, you can use negative numbers, for example, move -3
steps. Or, you can use a point in direction -90 block to change the sprite’s direction before
the sprite moves (-90 points to the left).
Select the sprite that you want to have the new sound, then select the Sounds tab. Each sprite starts
with a default sound:
Scratch has a library of sounds that you can add to your sprites. Click on the Choose a Sound icon to
open the Sound Library:
To play a sound, hold your mouse cursor (or your finger, if you are using a tablet) over the Play icon:
Click on any sound to add it to your sprite. You will be taken straight back to the Sounds tab and you
will be able to see the sound that you have just added:
If you switch to the Code tab and look at the Sound blocks menu, you will be able to select the new
sound:
When you are ready, click the Record button to start recording your sound:
Click the Stop recording button to stop recording your sound:
Your new recording will be shown. You can Re-record your sound if you are not happy with it.
Drag the orange circles to crop your sound; the part of the sound with a blue background (between
the orange circles) will be the part that is kept:
When you are happy with your recording, click the Save button. You will be taken straight back to the
Sounds tab and you will be able to see the sound that you have just added:
If you switch to the Code tab and look at the Sound blocks menu, you will be able to select the new
sound:
You could also:
Add to or improve your animation, with movement, looks, and graphic effects
Create or edit costumes in the Paint editor to make them look the way that you want
Record your voice or record sound effects and add the new sounds to your project
Professional programmers explore and take inspiration from code created by other programmers.
You can also look at the remixes for the Surprise animation starter project (https://scratch.mit.edu/
projects/582222532/remixes) to see what other creators have made.
If you have a Scratch account, you can share your project through Scratch. You can send a link to people you
know, and the whole Scratch community will be able to find your project and try it out.
If you like, you can add instructions in the Instructions box, to tell other people how to use your project.
You can also fill in the Notes and Credits box: if you have made an original project, you can write some
short comments, or if you have remixed a project, you can credit the original creator.
Click the Copy Link button to get the link to your project. You can send this link to other people by email or
text, or on social media.
Scratch provides the ability to comment on your own and other people’s projects. If you do not want to allow
people to comment on your project, you should turn off commenting. To turn off commenting, set the slider
above the Comments box to Commenting off.
Why not invite your friends to create a project? Let them know how you had fun.
If you have a Scratch account, and have shared your ‘Surprise! animation’ project, keep an eye out for comments
that others may make about your creation. Feedback is a great way to reflect on your work. Ignore any comments
that are unhelpful or irrelevant.
If you are happy and feel safe to allow people to write comments on your project, you can leave the first
comment:
If you think a comment or project is mean, insulting, too violent, or otherwise inappropriate, click the Report
button to let the Scratch Team know about it. To report a comment, click the Report button above the
comment. To report a project, click the Report button on the Project Page:
Take a look at these fabulous community projects from our ‘Surprise! animation — Community’
Scratch studio (https://scratch.mit.edu/studios/29079784):
You can also look at the remixes for the Surprise animation starter project (https://scratch.mit.edu/
projects/582222532/remixes) to see what other creators have made.
What next?
If you are following the Introduction to Scratch (https://projects.raspberrypi.org/en/pathway/scratch-intro)
pathway, you can move on to the I made you a book (https://projects.raspberrypi.org/en/projects/i-made-yo
u-a-book) project. In this project, you will make a book in Scratch based on your own idea.
If you want to have more fun exploring Scratch, then you could try out any of these projects (https://projects.ra
spberrypi.org/en/projects?software%5B%5D=scratch&curriculum%5B%5D=%201).