Scratch game making tutorial 137b

Santa's sleigh - intermediate

In this tutorial you will create a game in which Santa drops presents down chimneys. Watch out for the smoke!

 

Complete these steps ..

 

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

 

 

2. Delete the Cat sprite by right-clicking on it's thumbnail image under the stage.

 

 

3. Download and save these three sprites ..

 

Now, use the "choose new sprite from file" button under the stage to import them ..

 

 

4. Download and save the following background images ..

 

 

Next, select the stage, switch to the backgrounds tab, and then import the background images.

 

Delete the white background image.

 

 

5. Now add the following scripts ..

 

 

6. Use "File>Save as" to save your game. Name it "Santa’s sleigh 2"..

 

 

7. Select the Santa sprite and click the "Only face left-right" button ..

 

Now add the first script ..

Press the "B" (for Begin) key on your keyboard and Santa should shrink down.

 

 

8. Santa's sleigh will move automatically but the player will be able to control it's direction with the 4 arrow keys.

Add the following script ..

Test your game. Press the "B" key on your keyboard and then use the arrow keys.

Press "E" for end when you are ready to continue working on your game.

 

 

9. Let's make Santa’s sleigh reappear on the opposite side of the stage, and change the stage background image, when it reaches the edge. Add this script ..

Test your game.

Press "E" when you are ready to continue working on your game.

 

 

10. Use "File>Save" to re-save your game.

 

 

11. The game involves dropping the Present down the yellow chimneys. We need to keep score every time a Present successfully hits the Chimney.

Select the Variable scripts and click the "make a variable" button to create this variable ..

 

 

12. Let's add the scripts to make the presents fall from the sleigh when you press the space-bar on your keyboard.

Select the present sprite and add this script ..

 

Now add the script to make it fall whenever the space-bar is pressed ..

Press the "B" key to test your game. You should be able to control Santa’s Sleigh with the arrow keys and press the space-bar to drop the present down the chimney.

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

 

 

13. Use "File>Save" to re-save your game.

 

 

14. Finally, let's script the smoke that drifts up from the Chimney and takes points away if it touches the sleigh.

Select the Smoke sprite under the stage and add the first script ..

 

Now add the script to make the smoke drift upwards every now and then ..

 

Now add the script to make the Smoke sprite take away points when it touches Santa's sleigh ..

 

Press the "B" key to test your game. Every now and then, the Smoke should drift up from the Chimney.

 

 

15. Use "File>Save" to re-save your game.

 

You've finished this tutorial. Well done!