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

You are here MA&T Scratch Pacman

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

Import new background called "pacman background" and delete the original background. Import the sound file called "Pacman Original Theme" and follow script as in the diagram below to get the music to play.

Choose a new sprite from file called "pacman". Continue with the script as in the diagram below instructing the pacman sprite to follow the arrow directions.

Choose new sprite from file - selecting the green ghost, the blue ghost, the white ghost and the orange ghost.

 

Script for 'pacman' - now we want to tell the program to set the size of the pacman to 10% as it is far too big. We want the pacman to appear to open and close its mouth so we tell the program to wait a very short time period and then switch to the next costume.

We set the start position for the left side of the screen about the middle. (This can be changed to suit your own background.)

Script for 'pacman'

Create a new variable and call it 'points'.

Follow the script on the left. We tell the pacman sprite to reduce the points score by 10 each time it hits any of the ghosts and to glide back to the starting position.

(Don't forget to duplicate the script to speed things up).

   

Script for 'pacman'



 

Create a new variable and call it 'timer'. This will count down in seconds from 60 to zero when the game will end.

Finish the script as shown on the left.

 

Next we write the script for the ghosts - we will only write the script once and then drop the script on the other ghosts to speed things up. (Each ghost will start in the same position - appearing as if there is only one at first!) Then they will randomly move around the screen every two seconds.

Paint a new sprite - a sinlge dot of white using the paint brush and the 7th largest paint brush size - it is very difficult to see the dot as it is white - but don't worry as it will be on the black background. Complete the script below for the dot sprite.

Duplicate this 'dot' sprite and place it in the black around the stage. (You will need to duplicate this 'dot' between 70 and 80 times! (Don't forget to save your work).