A simple Scratch project for students - "Catch
the Ball" Game
This simple "Catch the Ball" Game for students introduces basic programming concepts like sequences, loops, and events.
Objective:
Move a character to catch a ball that falls from
the top of the screen. Earn points for each successful catch!
Steps to Create the Project:
1. Choose Sprites:
- Character (e.g., Cat): The
player-controlled sprite.
- Ball: The object to catch.
2. Set Up the Stage:
- Go to the Backdrops tab and choose or design a
simple background
(e.g., a plain colour
or a grassy field).
3. Code for Player:
when [right arrow] key pressed
change
x by (10)
when [left arrow] key pressed
change
x by (-10)
4. Code for Ball:
when green flag clicked
go to
[random position v] y: (180)
forever
change y by (-10)
if
<touching [Cat v]> then
play sound [pop v]
change [Score v] by (1)
go to [random position v] y: (180)
end
if
<y position < (-180)> then
go to [random position v] y: (180)
end
end
5. Add a Score Counter:
- Click on the Variables tab and create a variable
named Score.
- Display the score on the screen, and initialize it when
the game starts.
when green flag clicked
set
[Score v] to (0)
6. Add a Start Button (Optional):
- Create a button sprite to start the game.
- Add this code to the button:
when this sprite clicked
broadcast [Start v]
Tips:
- Adjust the speed of the ball for difficulty.
- Add sounds or effects when the player scores.
- Create multiple levels by increasing the ball's speed as the score increases.
BuyMote E-Shopping Application is One of the Online Shopping App
Now Available on Play Store & App Store (Buymote E-Shopping)
Click Below Link and Install Application: https://buymote.shop/links/0f5993744a9213079a6b53e8
Sponsor Content: #buymote #buymoteeshopping #buymoteonline #buymoteshopping #buymoteapplication