Student Subscription site screenshot Subscribe now

Subscribe to our Student Site to access all of our Games Coding Lessons for just £8 per month


Scratch games coding lesson 214b

Ball drag - intermediate

Complete a game in which the Cat sprite must collect balls and take them to a safe place to stop them being stolen back by another Evil stars!

NOTE: You need to use Scratch Desktop (version 3 of Scratch) or higher.

 

Complete these steps ..

 

1. Open Scratch Desktop (v3), OR create a new game by choosing "File>New" from the top menu ..

 

 

2. Download and save this template game file, and then load it into Scratch ..

Ball drag intermediate v1.sb3

 

This game uses 5 sprites ..

 

 

3. Select the Stage, and then add this code ..

 

 

4. Select the Cat sprite and add its properties code ..

 

Now add the code to move it around the stage ..

Press the B key on your keyboard to test your code.

When you are ready, press the E key to end your game and continue working on it.

 

 

5. Select the Evil star 1 sprite and add its properties code ..

 

Now add the code to make it move around the stage ..

Press the B key on your keyboard to test your code.

When you are ready, press the E key to end your game and continue working on it.

 

 

6. Select the Evil star 2 sprite and add its properties code ..

 

Now add the code to make it move around the stage ..

Press the B key on your keyboard to test your code.

When you are ready, press the E key to end your game and continue working on it.

 

 

7. Select the Chest sprite and add its properties code ..

The aim of the game is to get the Cat to drag the balls to the Chest sprite.

 

 

8. Select the Ball sprite and add its properties code ..

 

Now add the code to delete any clones when the game begins ..

 

Next add the code to clone it ..

 

Now add the code to make the clones move randomly around the stage and be attracted by the Cat and the Evil star 1 and Evil star 2 sprites when they get close, and to go to the Chest sprite for 30 seconds when they touch it ..

Press the B key on your keyboard to test your code.

When you are ready, press the E key to end your game and continue working on it.

 

 

9. Use File>Save to your computer to save your game. Name it Ball drag intermediate v1.sb3

 

 

10. Well done, you've completed this game. Can you develop it by adding your own sprites and ideas?