Control scripts dictate the flow control of your app. These scripts have to do with repeating tasks multiple times, checking if a certain criterion is met before proceeding, and making clones of objects in your apps. In this movie, see the basics of working with the Control scripts in Scratch, and see some examples of how Control scripts can be used in your apps.
- [Voiceover] Using the control scripts,…you can do several different types of tasks.…Control involves running commands repeatedly,…waiting for a certain amount of time,…running if then statements…that check to see if something is true,…and if it's true, then you can run a command,…and you can run a command if it's not true if you want,…and control also controls clones.…Clones are copies of a sprite,…so let's look at how some of that works.…
So on the screen here I have a wizard and a lightning bolt,…you may notice that I've shorten down…the lightning bolt a little bit and rotated it,…so it look like it's coming out of the wizard's magic wand.…So what you wanna do is click the wizard…and have the lightning bolt launched out.…So let's start with just having a lightning bolt move.…So what I'm going to do is, inside of the control section,…I'm gonna drag out, with the lightning bolt selected,…the forever script.…
So this is going to run commands forever,…so unless it get's to the end,…it's going to loop back to the beginning…
He starts with demonstrating how to create your first project and gather the artwork (aka sprites) and other assets you'll need to build it. Todd then reviews the prebuilt scripts, the bits of code that control the logic of your Scratch projects, and explains how to use the different script types for different functions, such as animating sprites, responding to events such as button clicks, and comparing values. In chapter 3, he covers costumes, and in chapter 4, he shows how to load and play sounds. Finally, he shows how to put it all together into a complete web game, which you can then share with the Scratch community.
- What is Scratch?
- Creating your first project
- Choosing a backdrop for your application
- Creating sprites (reusable graphics) in Scratch
- Working with scripts: animating objects, responding to events, and checking logic
- Switching sprite costumes
- Changing the appearance of sprites with custom-drawn costumes
- Playing sounds
- Building a game with Scratch
Skill Level Beginner
1. Get Started with Scratch
5. Build a Game
Next steps2m 36s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.