😺How To Make 'Cat and Dog Chase Game'

 

Goal: One sprite chases another — you lose if it touches you!

Steps:

  1. Create a new project.

  2. Keep the cat sprite as Player. Add another sprite like “Dog” for the enemy.

  3. Resize the enemy sprite.

  4. Add this code to the Player:


when green flag clicked forever if key (right arrow) pressed then change x by 5 if key (left arrow) pressed then change x by -5 if key (up arrow) pressed then change y by 5 if key (down arrow) pressed then change y by -5 end
  1. Add this to the Dog:

when green flag clicked forever point towards [Cat v] move 2 steps if touching [Cat v] then say "Got you!" for 2 secs stop all end
  1. Click green flag and try to escape!

Comments

Popular posts from this blog

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

🎮 How to Make a "Chase Game" in Scratch

🍎How to make a "Apple and Basket" game