Coin catch Scratch project The plan is to have a game where coins fall from the sky and you have to try and catch them. Create a “catcher” sprite and a coin sprite. Drag the Catcher to the bottom of the stage and add scripts so it moves left and right when the arrow keys are used. Add a script to the Coin so that it: Starts at the top of the screen Moves down the screen If it hits the bottom, it goes back to the top Alter the Coin script so that if it hits the Catcher, it goes back to the top too. Here’s the code, where does it fit into the main script? This is better lower at eg try x 24 and y 159 To make it more challenging, let’s have it fall from a different place across the top of the screen each time. So, instead of sending it back to x=20 each time, we’ll send it to a random spot somewhere between x=-220 (left) and x=220 (right). Change the go to commands to look like this: Scoring Create a variable named Score (choose “for all sprites” when asked) Notice it appears on the screen automatically. Great! Add the following bits of code in sensible places. Now we need to reset the score to 0 when the game starts, otherwise it keeps adding up. Add this script to the stage and add a background sound at the same time. Use bg_loop.mp3 Sound Add the sound “plunge” to the coin. When a coin is caught, play “pop” When a coin hits the bottom of the screen, play “plunge” Add some background music to the stage sprite. Duplicate your Coin Down in the sprites area (bottom right), right click the Coin sprite and duplicate it. Change the speed of this coin so it won’t always be at the same place as the other coin. More ideas: Make the coins move more as the score increases. Try using this for the coin movement. Now the coins start a bit slower, but speed up as the score increases. For example, when the score is 10, the coin moves (4+ 10/10) = 5 steps When the score is 30, the coin moves (4+30/10) = 7 steps. To be fair, you should make the Catcher get faster too (use a similar method). Add a bonus coin (duplicate the coin again and make it a different colour) worth more points. Use the show hide and wait commands so it only appears occasionally. Eg
© Copyright 2026 Paperzz