Presentation is loading. Please wait.

Presentation is loading. Please wait.

How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.

Similar presentations


Presentation on theme: "How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer."— Presentation transcript:

1 How to make a Shooting Target game in Scratch!

2 WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer to show how long you have been playing. A point system to show how many targets you have hit. This game could have: A shooter that will point to the mouse (e.g. A gun.) Something that will be shot out of the shooter (e.g. A bullet.) A background that could change. A target that automatically moves after a certain amount of seconds.

3 STEP 1 – MAKING THE TARGET SPRITE Make a sprite by clicking on this button Then, draw a sprite that will be the target for the game. When you have finished click ‘OK’. Then delete the cat by right clicking here and clicking delete.

4 STEP 2 – PROGRAMMING THE TARGET 1 Put a ‘Start’ block at the top. Then, put a forever block underneath. Put a ‘Go to’ block from the ‘Motion’ tab. Go to the ‘operators’ tab and get 2 ‘Pick random’ blocks. Change both of them to have ‘-200’ and ‘200’ in. Put one ‘Pick random’ block in X: and one in Y: Finally, get a ‘wait’ block and put it after the ‘go to’ block and set it to less that 5 seconds. All this will make the target change it’s position to a random coordinate on the stage every 3 seconds.

5 STEP 3 – PROGRAMMING THE TARGET 2 Add a ‘When sprite clicked’ block from the ‘Control’ tab Put a ‘go to’ block underneath. Then, get two ‘pick random’ blocks and change them to ‘-200’ and ‘200’. Put one ‘pick random’ block in ‘X:’ and one in ‘Y:’ Now, if the sprite is clicked it will change position.

6 STEP 4 – ADDING THE POINTS SYSTEM Go onto the ‘Variables’ tab. Click ‘Make a variable’. Type ‘Points’ into the box that pops up. Make sure that ‘For all sprites’ is selected. Click ‘OK’. You just created the Points variable!

7 STEP 5 – PROGRAMMING THE POINTS SYSTEM Add the ‘Set Points to 0’ block from the ‘Variables’ tab in between the ‘Start’ block and ‘Forever’ block. Add the ‘Change Points by 1’ block in between the ‘When sprite clicked’ and ‘Go to’ blocks. This will set the points to 0 when the game is started and whenever you click the target it will add 1 point.

8 STEP 6 – ADDING THE TIMER Go on to the ‘Variables’ tab again. Click ‘Make variable’. Type ‘Time’ into the box that pops up. Make sure ‘For all sprites’ is selected. Click ‘OK’. You have just created the ‘Time’ Variable.

9 STEP 7 – PROGRAMMING THE TIMER Put a new ‘Start’ block. Go to the ‘Sensing’ tab. Put the ‘Reset Timer’ block after the Start block. Get the ‘Set Time to’ block from the variables tab and put it inside a ‘forever’ block. Put the ‘timer’ block, from the sensing tab, into where the number is on the ‘Set time to’ block.

10 STEP 8 – MAKING THE TARGET SPIN Get a ‘Start’ block from the ‘Control’ tab. Get a ‘forever’ block from the ‘Control’ tab. Get a ‘turn clockwise’ block from the ‘motions’ tab and change it to ‘1’ instead of ‘15’ Put the ‘turn’ block inside the ‘forever’ block.

11 STEP 9 – MAKING THE SHOOTER Make a sprite by clicking on this button Draw the sprite that will be the shooter for the game (e.g. A gun or Bow) Click ‘Ok’ when you have finished.

12 STEP 10 – PROGRAMMING THE SHOOTER Make sure that you are on the Shooter sprite. Put a ‘Start’ block. Put a ‘forever’ block. Go to the ‘motions’ tab and get a ‘Point towards’ block. Click on the drop down menu and select ‘Mouse-Pointer.’

13 STEP 11 – CREATING THE BACKGROUND Click on the ‘Stage’ Click on the ‘backgrounds’ tab. Click on the ‘edit’ button. Draw your background. Click ‘Ok’ when you are done.

14 STEP 12 - ADVANCED - MAKING THE BULLET Create a new sprite with this button. Draw the bullet or the thing that is being shot (e.g. An arrow.) When you have finished click ‘Ok’.

15 STEP 14 – ADVANCED – PROGRAMMING THE BULLET Because this bit is quite long, just copy the blocks that I have put here. The light blue blocks are from the ‘sensing’ tab The dark blue blocks are from the ‘motion’ tab. The yellow blocks are from the ‘controls’ tab The purple blocks are from the ‘looks’ tab

16 CONGARTULATI ONS! YOU HAVE FINISHED!


Download ppt "How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer."

Similar presentations


Ads by Google