Pickup items are those items that collide with the character, but instead of being harmful are actually helpful. In the case of our game, we want the player to be able to collect the apples as they fall from the sky. This movie shows how to make the apples fall from the sky using the same techniques as the rocks, and how to make the player be able to collect the apples when the cat touches one.
- [Voiceover] Our next step is to make the apples…fall down from the sky like the rocks,…except for the cat will be able to pick up the apples…instead of getting crushed by them.…So let's click on Apple,…so this is the apple that we want to apply…these scripts to.…And we're going to apply the same scripts as the rocks.…So I'm going to move a little bit faster…than I did with the rocks.…So we'll start over in Events,…and then drag out a When Green Flag Clicked action.…And then head over to Looks,…drag out a hide.…
Remember we want this to hide, we wanna center it,…and we wanna place each apple that's created as a clone…in a random position.…So then we'll go to Motion,…go to x, y,…x will be zero and 'y' will be 180,…we'll put it at the top of the screen.…Then we want a Forever Loop,…so I'll drag one out right there,…and we wanna create clones.…And I wanna create a clone not at the same time…as the rocks.…So instead of every one second,…I'm going to use every 0.4 seconds.…
So that way, the apples and the rocks…aren't going to be created at the same time.…
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
Teaching iOS Programming to Kidswith Todd Perkins1h 1m Beginner
Teach Kids Programming with PHPwith Mark Niemann-Ross1h 39m 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.