In the last part, I combined everything I had learned in Scratch and created a simple yet complete jumping game (Try this game). The game is controlled by pressing the space key to make a chick jump and avoid obstacles. It includes two levels, and when the player earns enough points, the game transitions to the next level with increased difficulty.

Game Mechanics

  • Jumping Mechanism:
    The main character (a chick) jumps when the player presses the space bar. The vertical movement is achieved through a simple up-and-down repeat loop, simulating a jump. Each successful jump increases the score by 1.
  • Scoring System:
    I added a score variable to track progress. As shown in the code blocks, the score increases with every jump. When the score exceeds 5, the program broadcasts a message to switch to level 2.
  • Level Transition via Broadcasting:
    I used broadcasting messages like start the game and level 2 to control transitions. These messages trigger backdrop changes and modify sprite behaviors.
    The three backdrops are:
    • Start Scene
    • Level 1: Blue Sky
    • Level 2: Jungle
  • Sprite Behavior and Clone Management:
    When level 2 is reached, the obstacles from level 1 hide themselves, while new, faster obstacles appear. I reused previous sprite logic and updated their movement speed using glide blocks, making level 2 more challenging.
Uploaded image
The Chick Code

Reflection

Building this game helped me understand how different components in Scratch can work together to create interactive systems. I used:

  • Broadcasting to handle transitions
  • Variables to store and trigger level progression
  • Cloning and duplicating to reuse sprite logic
  • Events and Control blocks to drive the game’s logic flow

This project gave me a real sense of how visual programming can support real game development ideas. It was also really satisfying to see my small prototype come together into something playable.

What’s Next?

I’m now much more confident in using Scratch to prototype interactive experiences. In the future, I’d like to explore:

  • More complex physics (e.g., gravity, collision detection)
  • Sprite animation using costumes
  • User interface elements like menus and scoreboards
  • Making a complete multi-level game with sound effects and smoother transitions

Shared by: