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 ID: 760846
Download Presentation The PPT/PDF document "Scratch Helicopter Game LO: To understan..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Scratch Helicopter Game
LO: To understand the Logic of an If…else… statement
Slide2Creating 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.
Slide3Import Two
New SpritesImport the two sprites shown above (they are in the H: drive) and rename them helicopter and ball
Slide4Controlling the Helicopter
Drag the above blocks onto your helicopter script. This will programme your helicopter to move up, down and forward.
Slide5If 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.
Slide6Programming 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.
Slide7Making the Game
More ChallengingThe 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.
Slide8Making the Game
More ChallengingYou 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
Slide9Making the Game
More RealisticTo 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
Slide10Adding 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.
Slide11Extension TasksCan 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?