Download presentation
Presentation is loading. Please wait.
1
A Christmas Scratch game
Sleigh Drop A Christmas Scratch game
2
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\...
3
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
4
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
5
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.
6
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 blue in the background
7
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.
8
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
9
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.
10
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.
11
Step 9b. Your sprite block is almost complete and looks like this.
12
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.
13
Extension Challenges Duplicate the present. Avoid the coal.
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.
14
Extension Challenges Can you animate the background to make the stars move or twinkle in the sky? Could there be a naughty elf who bounces around the screen who takes points if he hits your sleigh Could you make them appear when the score is more than 10?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.