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

Start learning →

touching (mouse-pointer / edge / Sprite)? — Scratch Block Guide

📌 What you will learn

Boolean block returning true if this sprite’s visible pixels overlap the target.

What this block does

Boolean block returning true if this sprite’s visible pixels overlap the target.

Core collision detection for coins, walls, enemies, and buttons.

  • Category: Sensing Blocks
  • Key tip: Faster and more reliable than "touching color?".

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 (mouse-pointer / edge / Sprite)?
  1. When green flag clicked
  2. Forever
  3. If touching (Star)? then
  4. Change score by 1

Try it: Scores whenever the sprite touches the Star.

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 (mouse-pointer / edge / Sprite)?" in Scratch?

Core collision detection for coins, walls, enemies, and buttons. Faster and more reliable than "touching color?".

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