Please note: This theme has not been updated to reflect Scratch 3.0. Visit this help article for more info.
Transcript

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.

Instructions

  1. Open the starter project.
  2. Click Remix and sign in.
Attributions
  • "Cleveland Art Museum" by Simon Bromfield (https://www.youtube.com/watch?v=RvqcIUr-41A) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode) -- Video trimmed to needed length | audio removed -- Video trimmed to needed length, audio removed
  • "3D Animation Masterclass: Basic Walk Cycle Tutorial" by Kyle Balda (https://www.youtube.com/watch?t=232&v=m9N_sIBRWvY) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode) -- Video trimmed to needed length, audio removed
  • "fashion-731827_960_720" by SnapwireSnaps (https://pixabay.com/photos/fashion-woman-female-girl-yellow-731827/) -- Licensed by CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/) -- No modifications made
  • "construction-worker-safety-danger-8159" by Life of Pix (https://www.pexels.com/photo/construction-worker-safety-danger-8159/) -- Licensed by CC0 Public Domain (https://creativecommons.org/publicdomain/zero/1.0/deed.en)
  • "Open Sonic Gameplay" by Toca do Tux (https://www.youtube.com/watch?v=6zY7912vfgY) -- Licensed by Creative Commons Attribution 3.0 Unported (https://creativecommons.org/licenses/by/3.0/legalcode) -- Video trimmed to needed length | audio removed
  • "Trousers-colourisolated" by Themightyquill (https://commons.wikimedia.org/wiki/File:Trousers-colourisolated.jpg) -- Licensed by CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/)
  • "Cross-legged(b&w)" by Caleb George Morris (https://commons.wikimedia.org/wiki/File:Cross-legged(b%26w).jpg) -- Licensed by CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/)