Create & Learn
Background

Try Neon Kitty Pointer Chase for fun Scratch Project!

Neon Kitty Pointer Chase

Platform: Scratch
Level: beginner

In this project, students code Kitty the cat to chase the computer's mouse pointer around a glowing neon city backdrop. Using a 'forever' loop, Kitty is programmed to constantly point towards and move toward the mouse pointer. When Kitty touches the pointer (using an 'if-then' conditional), a 'meow' sound plays, she switches her costume to a happy pose, and she teleports to a random position on the screen to start the chase again.

Backdrop And Sprite Images For The Project

background
background
1280 x 896
Kitty
Kitty
1024 x 1024

Neon Kitty Pointer Chase: Solution Outline

These are the high level steps to create this project. Try to create the project on your own first as much as possible, before checking the detailed solution samples below.

  1. Set up the Stage and Kitty Sprite
  2. Program Kitty to Chase the Mouse
  3. Add the Catching Condition

Neon Kitty Pointer Chase Sample Solutions

This section provides detailed, step-by-step instructions on how to build the project. There are many ways to create a project, so feel free to explore different approaches. Please note that these instructions are Al-generated, so errors may occur and the coding blocks may not map to Scratch exactly. But it should serve as very valuable references. Stay attentive as you follow along, and enjoy!

Set up the Stage and Kitty Sprite

Start by selecting a glowing neon backdrop from the Scratch library, such as 'Neon Tunnel' or 'Neon City'. Then, select the Kitty sprite. Make sure your Kitty has at least two costumes: one for running/normal and one for a happy pose when she catches the mouse.

Program Kitty to Chase the Mouse

Create a loop that keeps Kitty constantly pointing toward your computer mouse and moving toward it. Use a 'forever' loop combined with 'point towards' and 'move steps' blocks so Kitty never stops chasing.

Add the Catching Condition

Inside the forever loop, add an 'if-then' conditional block to check if Kitty is touching the mouse pointer. If she is, play the 'meow' sound, switch her costume to the happy pose, teleport her to a random position, and switch her costume back to start the chase again.

Common Potential Issues in Neon Kitty Pointer Chase Project

It is common to have bugs in the code. Here are some of issues you might run into.

  • Jittery Kitty: If Kitty reaches the mouse pointer and stays there, she might jitter rapidly. Adding a small delay or checking the distance can help prevent this.
  • Wrong Costume Names: Make sure the costume names inside your code blocks exactly match the names of the costumes in Kitty's costume tab, or she won't change poses.
  • Kitty Gets Stuck on the Edge: If Kitty teleports to a random position and gets partially stuck on the screen boundary, ensure your project starts Kitty back at the center (x: 0, y: 0) when the green flag is clicked.

Extra Challenges For Neon Kitty Pointer Chase

  • Add a Score Tracker: Create a variable called 'Score' that goes up by 1 point every time Kitty successfully touches your mouse pointer.
  • Speed Power-up: Add a glowing star sprite that appears in random spots. If Kitty touches the star, make her move twice as fast for 5 seconds!

Learn Scratch Coding Skills

Enroll your child in award-winning online Scratch coding classes led live by experts and designed by professionals from Google, Stanford, and MIT.

Scratch Junior
Scratch Junior

Grades K-2

Start coding with ScratchJr, and make interactive stories and games
Scratch Ninja
Free Intro
Scratch Ninja

Grades 2-6

Code games and animations with Scratch coding, beginner to advanced levels
Accelerated Scratch
Free Intro
Accelerated Scratch

Grades 5-9

Fast-paced introduction to Scratch coding: build games, stories, and animations
Intermediate Game Building with Scratch
Intermediate Game Building with Scratch

Grades 3-6

Code a new fun Scratch game every week

Explore More Fun Scratch Practice

The challenge continues: Enjoy even more Scratch tutorials dreamed up by other students or use your imagination to make your own!

Develop My Own Idea

Find Best Classes For Your Child

Explore your child's grade level to find computer science classes and learning pathways that set your student up for success.