Costumes, which in other animation or development environments are referred to as frames, can be animated. Sprites can alternate between multiple costumes to change appearance. Using Scratch you can switch between costumes with scripts. Costumes can also be created from existing costumes that are modified. See the basics of costume animations in this movie.
- [Voiceover] We talked earlier about costumes.…Costumes are animation frames.…So with our Sprite 1 selected here,…I'm going to head over to the costumes tab,…and if we click on the costume 2 right here,…we can see that if we go back…between costume 1 and costume 2,…it looks like the cat is walking in place.…So let's say our goal here is to make the cat…walk from here to here, and to take a step…each time we tap the space key on the keyboard.…
So we're going to put him all the way on the left over here,…and then I'm going to go to scripts,…and I'll go to events, and we're going to start…with when space key pressed.…So I'm going to drag and drop that out…into the scripting pane.…Now what we wanna do is make him take a step forward.…So I'll go over to motion, and then…just click and drag move 10 steps out.…You can of course test that by pressing the space key,…and there he goes.…So now let's say we want him to switch costumes.…To do that we go over to looks,…and this is where the switch costume actions reside.…
So in here, I can just grab, either switch costume to,…
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.