When you code a Scratch project, you sometimes want the sprites to do different things, depending on what is happening in the project.
For example, in the Recycle Game in Unit 5, you used an if-then-else block to add 1 to the score ifthe user moved the item onto the correct Sprite. Else, the project subtracted 1 from the score.
The video below helps to explain the different types of conditional blocks, which are blocks that cause different actions depending on a condition.
The girl is using a different coding language than Scratch, so the blocks look a little different and have different colors, but the ideas are the same.
Scratch game apps are really fun and can be a great way to educate users about big problems!
ACTIVITY: OCEAN PLASTIC CLEANUP GAME
Follow the video below to make a game where a diver will race against a fish to pick up plastic in the ocean.
We're updating this site to reflect our new direction. Technovation's refreshed brand and broadened mission are live at technovation.org. Your curriculum and competition resources stay right here.
See what's new
Coding Conditionals in Scratch
NOTE: You will use the MachineLearningForKids website.
You will have two options to use the website:
Get your teacher or mentor to sign up and they can create an account for you.
You can save your project, but the Scratch project won’t be saved. If you want to keep the Scratch project, save it to your computer.
Try without an account by clicking Get Started, then clicking Try it Now.
If you Try it Now without an account, you can do the exercise, but cannot save it.
Login
Accessing this course requires a login. Please enter your credentials below!