Catch the Apple Project

In this tutorial, you will learn how to make an Apple Catch game in Scratch! Impress your friends and family with this fun game.

Catch the apple project in action!

Tutorial by Rohan Chittum

Step 1

Let’s start with the sprites. First, delete the cat and go into the sprite area and pick an Apple and Bowl. These will be the main things you will need in the game.

Step 2

Next, go into the backdrop tab and get the Tree backdrop. It will make it look nice.

Step 3

Time to add some code! Let’s start with the bowl’s code. First, put the bowl at position x at -182 and y at -134

Next, go into the Events and get the “When Left Arrow Key Pressed” block and the “When Right Arrow Key Pressed” block.

Then, go into motion and get two “Change X by __” blocks in one put in -10 and in the other, type 10. After that, place the -10 on the Left Arrow one and the other on the Right Arrow. Your code should look like this:

Step 4

Now, it would not be fun without the score in our game! So, go to the variables section and create a variable and name it Score:

Then, get a When Flag clicked block and put the set _ to_ block and set it to Score: and the other one to 0. Your code should look like this:

Step 5

Next, we’re going to add code to the Apple that tells our game that if it touches the bowl you get a point and go to a random starting position high up in the tree! Your code should look like this:

Step 6

Here, you will code if it misses and send it back to the start. Your code should look like this:

You’re finally done! Click the green flag and move the bowl with your arrow keys and try to catch the apple!

Challenge: Once the score is 20 or more try to make the bowl into a Fruit Platter!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: