School Logo
  Home       Parents       News       Pupils' Work       MA&T Programme
   

You are here MA&T Scratch Santa Game

This is not an easy game, expect problems but they can be sorted!

Script for 'Blank'

All files for this project (sprites & sound files) are on the public folder on the school's Intranet)

Choose new sprite from file - 'Blank'
Scripts - create new 'when I receive' and call it 'play'.
Continue with script as shown in diagram opposite.

 

 

Script for 'logo'

 

Paint new sprite or choose new sprite from file called 'logo'.
If you paint the file the following instructions should be written: "Help Santa deliver his presents. Shoot Christmas presents down the chimneys by clicking with your mouse. When you shoot 10 presents you go up to the next level. Each level Santa moves faster. Have fun!"

Continue with the script as in the diagram opposite.

 

 

Choose new sprite from file 'Roofs'. Move it on the stage so that the top point of the middle roof is at X: 5 and Y: -65.

Continue with script as in the diagram opposite.

 

 

Click on "Stage", then Backgrounds and import 'background2' and then delete 'background1'.

Import sound 'Jingle Bells'

Create a new Variable - call it 'level'. Unselect it so that it doesn't show.

Continue with script as in the diagram opposite.

   


 

Choose new sprite from file called "Santa".

Continue with script as in the diagram opposite.

There are a few tricky bits in this script! For 'move.. level / 2 + 1 ..... steps' - (a) pick the box plus box option from the Operators and then (b) the box / box option which goes into the left side of the first box chosen in (a). Then (c) put the level into the first box.

Choose new sprite from file called "Present" - it comes with 8 costumes and a sound file called 'Select1' (You can always paint your own costumes when you have learned how to program the game).

Continue with the script as shown in the diagram opposite.

Info: 'When I receive' "play" forever - go to Santa: this bit moves the present with Santa (it doesn't hide the present - we will do that next by adding the 'hide'.

Then add 'if' mouse down - - switch to costme - show: (when you click with the mouse the present shows).

Repeat until the grey colour which is on top of the chimneys (it will register as a hit) / black colour (it will register as a miss) - so colours are very important.

Create a newBroadcast called score+1

Choose new sprite from file called - "No Presents".

Place left hand first present centre at: X: -65 and Y: -168

Continue with script as in the diagram opposite



Choose new sprite from file called - "Score" - it comes with 11 costumes and the sound file 'Select1'

NB Drag 'score' to match where 'No Presents' are - one sitting exactly on top of the other - one exactly underneath the other.

Continue with the script as in the diagram opposite.

 

DONE - a long and fairly difficult program but one you can adapt and change to have fun with.

PS The sound file 'Jingle Bells' is a combination of tracks taken from last year's school CD of Christmas songs to raise money for the Lions club.