Hello again animators!
Welcome to activity five of Google's CS First animation.
In this activity, you will build a side scrolling game.
As you make this game, you will
learn a lot more about Conditionals.
If you've been in a CS First club before,
you know computers use conditionals to make decisions.
In Scratch, the If and If Else blocks are Conditionals.
Computer scientists think a lot about
contingencies which is a fancy word for,
different things that can happen.
One If Else block can handle two contingencies
if you work at a cool tech company, you wear shorts to work
otherwise, you wear dress pants or a skirt.
But, those aren't the only options.
What if you work outside?
You might wear a hard hat.
That's another contingency.
You can probably think of a lot more.
In Scratch, you'd code something like this.
By nexting Conditionals
or by putting multiple If blocks together.
That way, you can cover all the contingencies.
Animators think about contingencies too.
They think about the different experiences a character
might have, the different ways it can move,
and what changes in the story as a result.
Take a look at all of the contingencies used in
an interactive art display at the Cleveland Museum of Art.
Users can drag an image from another part of the screen
they can also swipe, right or left, or tap an image
to display even more information.
This activity uses nested conditionals to
decide when the character can jump, walk, and animate
and when the ground can move and show.
Open the starter project, next to this video,
and sign in.
Click remix.
Then, go to the next video to start building.
You may see some code in the starter project.
Feel free to look around and tinker with it.
To understand, what it does.
If anything goes wrong, you can just open it back up
from this page, go ahead and get started.