Welcome, young coders! Today, we're going to create a fun game called 'Easter Egg Catch'. In this game, you'll be catching falling Easter eggs with a bowl. Sounds exciting, right? Let's get started and see how many eggs you can catch!
Open the Scratch website, create a new project and delete the cat sprite.
Go to the Scratch website using the link below and click on the 'Create' link in the blue bar at the top.
By default, each new project starts with the cat sprite already added. To delete the cat click on the x in the blue circle beside the cat in the sprite list.
Choose a backdrop from the backdrop library and add it to your project.
To add a backdrop from the backdrop library follow these steps:
You can use search box or the filter links (Fantasy, Music, Sports etc) to locate your backdrop.
In the game we will move a bowl left and right at the bottom of the stage to try and catch falling Easter Eggs.
Add the Bowl sprite from the sprite library and give it the following code.
when green flag clicked
go to x (0) y (-140) // place it at the middle bottom
forever
if < key (left arrow v) pressed? > then
change x by (-10) // move left
end
if < key (right arrow v) pressed? > then
change x by (10) // move right
end
end
Since your tablet or iPad doesn’t have a physical keyboard, you’ll use on-screen buttons to complete this task. Wherever the instructions in this lesson mention pressing a key, you’ll need to tap a button on the screen instead. So, while your steps are a little different, you’ll still be able to make everything happen in your project.
So for example, instead of doing either of these:
when [left arrow v] key pressed
move (10) steps
if < key [left arrow v] pressed? > then
move (10) steps
end
You need to add an on-screen button (like an arrow sprite) and use this code:
when this sprite clicked
move (10) steps
Now, just tap the button on the screen to perform the same action!
Included with this step is an Easter Egg sprite called 'easter-egg.sprite3'. Download the sprite to your computer and then upload it into your project as a new sprite.
You can upload images and sprite files into your project. To upload a sprite follow these steps:
The new sprite will upload into your project and appear in the stage area.