Scratch game making tutorial 137a

Santa's sleigh - simple

In this tutorial you will create a game in which Santa drops presents down a chimney. 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 image ..

 

 

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

 

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 1"..

 

 

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. Add the script to make Santa sleigh follow the mouse-pointer around the stage ..

Test your game. Press the "B" key on your keyboard to begin your game, and then move the mouse-pointer around the stage.

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

 

 

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

 

 

10. The game involves dropping the Present down a Chimney sprite which moves along the bottom of the stage. 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 ..

 

 

11. Let's get the chimney moving along the bottom of the screen. Select the Chimney sprite and add this script ..

 

Now add the script to make it move ..

 

Press the "B" key to test your game. The Chimney should move along the bottom of the stage, disappear off the right bottom edge and then re-appear on the left bottom edge.

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

 

 

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

 

 

13. 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 when the space-bar is pressed ..

Press the "B" key to test your game. You should be able to control Santa’s Sleigh with your mouse-pointer 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.

 

 

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

 

 

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

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

 

Now add the script to make the smoke drift upwards ..

 

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

 

 

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

 

You've finished this tutorial. Well done!