Upload
mae-webb
View
215
Download
0
Tags:
Embed Size (px)
Citation preview
Step 1. In this game items will drop from the sky and
you will need to catch them to get points. Catch the wrong things however and you will lose points.
You need to open the starting game which has all the graphics you need to start making the game.
You can find this in:
Common\Year13\Examples\ICT\...
Step 2.Let’s make the sleigh move from left to right
when you click on the arrow keys.
Click on the then choose the
Enter the script below.
then see if you can create the left arrow script
Step 3.Now we want our present to fall to the ground.
Click on the and then the
We want the present to fall from the top to the bottom so we change the y position of the present.
Enter this script to make the present fall when the flag is clicked
Step 4. I want the present to start at the top every
time the flag is clicked.
This means I want to set y to 151 at the beginning
Change your script so it looks like this.
Step 5.When the present reaches the bottom it should
go back up to the top. So I want to check IF it has hit the blue at the bottom of the background.
Change your script to look like the script on this page.
Check that you have the if statement inside the forever loop.
You can get the right colour by clicking in the touching colour command then clicking on the bluein the background
Step 6.Let’s make it all a bit more random.
If the present falls in the same place each time it will be too easy to catch. So let choose a random position to start.
Let’s also make it wait a random time before it appears again!
We use the hide and show commands to control if the player can see the sprite.
Step 7.What is the point of a game if there is no way
to keep a score!
Now call your variable score
Click Here
Then here
Step 8.Back to your present sprite
Change your script to change the score when it hits the blue.
Your script should now look like this.
Step 9a.OK, we can lose points, but how do I get
points?
We want to say that IF the present touches the sleigh then change the points by 2.
This looks a lot like the block that took points away. Put it in the forever loop but after your touching blue block.
Step 9c.One last change to make to the sprite to make
it even more random.
Change the top of your script to hide the sprite and then wait a random amount before showing it.
Extension ChallengesDuplicate the present.
Make a copy of the present by right clicking the sprite and choosing duplicate. Then change how it looks.
Can you get three presents that all look different. Maybe each one is worth different points and falls at a different speed.
Avoid the coal. Add scripts to the coal. It will fall just like the
presents, but if you catch it then you lose 5 points (Boo).
Add sounds. Make a nice noise when you catch a present and a
oops sound if you catch the coal.