/  8
 
Sharks and Fishes
 A Simple Scratch Game
By MWClarkson
Based on an idea by DJPhillips
 
Part 1- Der Dum, Der Dum*
This tutorial assumes you have used Scratch before - it will give youguidance and hints on how to make the game, but it will require someTHOUGHT in order to get through all of the tasks!1. Right click the cat and delete it. This is a game about sharks and fish -they live in the sea. Cats don’t live in the sea. That would be silly.2. Add a new 
Sprite
: have a look in the Animals folderand choose shark1-a. you might want to shrink it a bit.3. We want the shark to swim up, down, left and right when we press the arrow keys.
Remember 
that Scratch uses a co-ordinate system, just like a graph. Here’s an example of how to go up - you’ll have to figure out down, left and right by yourself.
*If you don’t get the reference, ask your parents about
Jaws
Page 2
By MWClarkson
Based on an idea by DJPhillips
 
4.
 
 Assuming that worked (if it didn’t then go back and keep trying!), you will have noticed that pressing left makes the shark swim backwards (also known as ‘moon-swimming’*). To fix that we can tellthe shark to point either left (when moving left) or right (whenmoving right). We don’t need to worry about pointing up or down.The trick here is to
 ADD
a block to the existing instructions - not to write a whole new set alongside what we’ve already got. So in thisscreenshot only 
ONE BLOCK
is new.5. At the top of the
Scripts
window there are three buttons that control the way the
sprite
rotates. Try each one and see what the difference is - and whichone is best for this sprite.6. Finally for this section, click the
Costumes
taband
Import
the
shark1-b
costume (the one where the shark looks ready to eat someone). We want a new block of code so that when wepress
space
the shark will open its mouth (hint:
switch to costume
), wait 0.5 seconds and close it again.
* If you don’t get the reference, ask your parents about
Michael Jackson
Page 3
By MWClarkson
Based on an idea by DJPhillips

Share & Embed

More from this user

Add a Comment

Characters: ...