NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

touching color (#)? — Scratch Block Guide

📌 What you will learn

Returns true if any pixel of this sprite overlaps the exact picked stage color.

What this block does

Returns true if any pixel of this sprite overlaps the exact picked stage color.

Useful for quick maze walls or lava pits drawn on the backdrop.

  • Category: Sensing Blocks
  • Key tip: Use the eyedropper tool to sample the exact color; avoid overusing inside many clones to keep FPS high.

Working Scratch example

Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.

Example using touching color (#)?
  1. When green flag clicked
  2. Forever
  3. If touching color (red)? then
  4. Go to x: -180 y: 0

Try it: Sends the player back to start upon touching red hazards.

Related block guides

Explore other blocks in the same category or return to the full English Block Dictionary.

Back to Sensing Blocks See the overview and patterns for Sensing Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

FAQ

When should I use "touching color (#)?" in Scratch?

Useful for quick maze walls or lava pits drawn on the backdrop. Use the eyedropper tool to sample the exact color; avoid overusing inside many clones to keep FPS high.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.