Presentation is loading. Please wait.

Presentation is loading. Please wait.

Scratch Helicopter Game

Similar presentations


Presentation on theme: "Scratch Helicopter Game"— Presentation transcript:

1 Scratch Helicopter Game
LO: To understand the Logic of an If…else… statement

2 Creating your Background (Stage)
Click on Stage then ‘backgrounds’ and ‘edit’. You can then use the fill tool to create the black and the paint brush tool to draw the grey sections. Once you press ‘OK’ it will fill the stage on the right hand side of the screen.

3 Import Two New Sprites Import the two sprites shown above (they are in the H: drive) and rename them helicopter and ball

4 Controlling the Helicopter
Drag the above blocks onto your helicopter script. This will programme your helicopter to move up, down and forward.

5 If Touching Colour Add the above blocks to your helicopter script. This will programme the game to stop if the helicopter touches the edge of the cave.

6 Programming a Way to Win
Add the above blocks to your helicopter script. This will programme the helicopter to say ‘You Win’ when its x coordinate is greater than 250.

7 Making the Game More Challenging
The game we have so far created is fairly easy to win. Add the above blocks to your ‘Ball’ sprite to begin to make the game more challenging.

8 Making the Game More Challenging
You will now need to add the above blocks to one of your If statements to make the game end if the players helicopter touches the edge of the cave OR the ball sprite

9 Making the Game More Realistic
To make the game more realistic we are going to make the helicopter look like it its exploding by changing its costume when it touches the ball OR the cave. Import the costumes shown above (they are in the H: drive) and add the above code to your helicopter sprite

10 Adding a Timer We will now add a timer to the game to make it more competitive. Make a new variable and call it timer. You then need to add the blocks shown above to your Helicopter sprite. Remember that a variable is a memory location that you create. Think of it like a box to store data in.

11 Extension Tasks Can you add lives to your game? Can you program your Helicopter to go back to the start if it touches the Ball OR the Cave? Can you make your game TWO player?


Download ppt "Scratch Helicopter Game"

Similar presentations


Ads by Google