🎮 How to Make a "Chase Game" in Scratch

--- PLEASE CLICK READ MORE ---

🎯 Goal:

The player controls a cat sprite with arrow keys to chase and catch a moving ball. Score increases each time the ball is caught!


🧱 Step 1: Setup Your Sprites

  1. Open Scratch (https://scratch.mit.edu/).

  2. Click “Choose a Sprite” and:

    • Select the Cat (or any sprite for the player).

    • Click Choose a Sprite again and pick a Ball.

  3. Delete the default backdrop or choose a new one.


🧠 Step 2: Make the Cat Move

  1. Click on the Cat sprite.

  2. Add this code:


when green flag clicked forever if <key (right arrow) pressed?> then change x by 10 end if <key (left arrow) pressed?> then change x by -10 end if <key (up arrow) pressed?> then change y by 10 end if <key (down arrow) pressed?> then change y by -10 end end

🏃‍♂️ Step 3: Make the Ball Move Randomly

  1. Click on the Ball sprite.

  2. Add this code:


when green flag clicked forever go to x: (pick random -200 to 200) y: (pick random -150 to 150) wait 1 seconds end

🧮 Step 4: Add a Score System

  1. Click “Variables”Make a Variable → Name it: Score.

  2. For the Cat sprite, add:


when green flag clicked set [Score v] to [0]
  1. Still on the Cat, add:


forever if <touching [Ball v] ?> then change [Score v] by (1) wait 0.5 seconds end end

✅ Step 5: Test and Play!

Click the green flag to play your game. Move the Cat with arrow keys and catch the Ball!


Let me know if you want:

  • A timer added ⏲️

  • A second level 🎯

  • Or sound effects 🎵

Tell me in the comments below! I will reply you back!

Comments

Popular posts from this blog

🚶‍♂️ How to Make a Walking Animation in Scratch

🍎How to make a "Apple and Basket" game