helicopter game tutorial a step by step guide. step 1- open scratch go to: – start – all...

Post on 15-Jan-2016

246 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Helicopter Game Tutorial

A Step By Step Guide

Step 1- Open Scratch

• Go to:– START– ALL PROGRAMS– COMPUTING AND BUSINESS– SCRATCH

Step 2- Do You Have This?

Step 3- Go To Costumes

Here

Step 4- Delete Costume 2 So Only Costume 1 Is Left!

See

Step 5- Edit Costume 1, Clear Cat and Add A Helicopter

Step 6- Shrink The Helicopter

Here

The Next Steps Are To Help Make Your Helicopter Look Like It Is Moving Its Rotors.

Buckle Up!

Step 7- Costume 1- Delete Rotors With Eraser

See

Step 8- Now Copy Costume 1 TWICE (so you have 3 ‘copter sprites)

See

Step 9a- Go Back To Costume 1 And Add A Rotor Using Line Tool

Step 9b- Go Back To Costume 2 And Add A Rotor Using Line Tool

Step 9c- Go Back To Costume 3 And Add A Rotor Using Line Tool

Step 10- LOOPING CODE

• CHALLENGE!• Can you create some code blocks that makes

the rotors spin?

• CLUE: “When the green flag is pressed, forever next costume”

IF YOU WORK IT OUT YOU ARE A STAR!

Step 11- Make Your Copter Move Left and Right!

Get Your Colleague Next To You To Test It

Works!

Step 12- Make Your Copter Up and Down

Step 13- Go To Stage Create a Skyline But With A Black Border

Step 14- Make The Helicopter Start In The Same Position. Code This!

Step 15- We don’t want the copter going off the screen……here is some code

TRY THE CODE…….GO

RIGHT …DOES IT STOP AT THE

BLACK LINE?

Step 16- Can You Make The Copter Stop At All Boundaries?

TEST IT

STEP 17- CHECK YOU HAVE DONE THIS?

• You have an animated helicopter• Your helicopter can move up, down, left and

right• Your helicopter does not go off screen• You have a background that relates to your

game

Step 18- Make An Object That Could, If It Touches The Copter, Could Make You Lose Points

I created a dragon and shrunk it

Click New Sprite!

Step 19- So I Have A New Sprite That I Can Add Code To

See ….New Sprite!

Step 20- Add Code To Make The Dragon Fly Across Your World. Work the code out!

Step 21- Add A Scoring Variable

Step 22- Add Scoring Code. When Game Starts Start At 0 Score. Then If Dragon (Sprite 2) Touches Your Copter (Sprite 1) Lose Points

Step 24- Create An Animated Dragon…Breathing Fire! Costume First!

Step 25- How Could We Make The Dragon Switch Costumes? What Code Could We Use?

Step 26- Add Sounds (Grab Headphones!)Let’s make the dragon sprite make a noise!

Step 27- My Dragon Howls! Weird!

Step 28- When The Game Starts How Could Make The Dragon “Howl” Every Few Seconds?

Step 29- Summary Of Code For The Dragon

Step 30- Lets Make Another Dragon! Duplicate The Dragon Sprite

Step 31- Now With 2nd Dragon Sprite Change The Code To Make Him Fly Around The Screen!

Step 32- This Adds A Man That Needs To Be Rescued From The Dragons!

Step 33- Can You Add More People To The Game?

Step 34- Scoring- Add Scoring For When A Copter Touches (Rescues) The Person- Sprite 4

JUST ADDED THE SCORING CODE

Step 35a- Add A Wiltshire Air Ambulance Loading Screen

• Follow these steps:I. Go to GoogleII. Find the logo of Wiltshire Air AmbulanceIII. Right Click Save Image AsIV. Save To Your 7B Folder In Z: Drive

Step 35b- Create A New Sprite & In The Costume Import The Wiltshire Air Ambulance

Logo

Step 35c- Add The Code To Make The Logo Appear At Start Then Disappear

Step 36- Create Game Instructions in Word. Not Too Many!

Step 37- In Your Logo Sprite Add A New Costume. Click Paint

Added Blue Font and Yellow Background

Step 38- How Would You Code It So The Logo Appeared, Then Instructions and then

game started?

Step 39- The Code For The Game Startup

Step 40- Make A Winning Screen. New Sprite

Step 41- Code For Winner Screen Including Music!

DOES IT WORK?

top related