Snap Documentation
IntroductionGet startedGlossaryReferences
1.0.0
1.0.0
  • Introduction
  • Get started
    • The First Day
    • Algorithms
    • Programming Languages
    • SNAP Self-Portrait
      • Do now
        • I Am ...
      • Labs
        • Getting to Know You
  • Snap!
    • Getting started with Snap!
      • Labs
        • Welcome to Snap! - Part 1
        • Welcome to Snap! - Part 2
    • Building Blocks
      • Do now
        • Tracing and Debugging
      • Labs
        • SNAP Scavenger Hunt
    • Drawing Shapes
      • Do now
        • Drawing a Triangle
      • Labs
        • Squares, Triangles, and Stars, Oh My!
    • Costumes
    • Animation
      • Do now
        • Sprite Communication
      • Labs
        • Sprites in Action
    • Storytelling
      • Do now
        • Knock Knock
        • Click Event Interaction
        • Movement Interaction
    • Project
      • Animated Storytelling
  • Loops
    • Loops
      • Do now
        • Introduction to Loops
      • Labs
        • Squares and Triangles Redux
    • Nested Loops
      • Do Now
        • Debugging Loops
      • Labs
        • Yellow Brick Road
    • Inputs and Conditionals
      • Do now
        • Stairs
      • Labs
        • What Shape is That?
    • Variables
      • Do now
        • Debugging
      • Labs
        • Guessing Game
    • Boole in the House
      • Do now
        • Variables Practice
      • Labs
        • Triangles of All Kinds
    • Combining Loops and Conditionals
      • Do now
        • Boolean Practice
      • Labs
        • What Goes Up...
    • Quiz
      • Loops
    • Pong
      • Do Now
        • Bouncing Ball
    • Project
      • Pong
      • Pong - Alternative
  • Customization
    • Abstraction and Friends
    • Procedures
      • Do now
        • Drawing Squares
      • Labs
        • Drawing Shapes
    • Customization - Part 1
      • Do now
        • Jumping
      • Labs
        • Let Me Check My Calendar
    • Customization - Part 2
      • Do now
        • Practice using Arguments
      • Labs
        • If My Calculations Are Correct...
    • Quiz
      • Customization
    • Project
      • Platform Game
      • Platform Game - Alternative
  • Lists
    • Intro to Lists
    • Static Lists
      • Do now
        • Letters of a Word
      • Labs
        • You Talkin' to Me?
    • List Practice - Part 1
      • Do now
        • Quote of the Day
      • Labs
        • Guess Who
    • List Practice - Part 2
      • Do now
        • Traversing List
      • Labs
        • Number Cruncher
    • Sequential Search
      • Do now
        • List Tracing
      • Labs
        • It's Around Here Somewhere
    • Lists
    • Guess My Word
      • Do now
        • Gentle Guess My Word
    • Project
      • Guess My Word
  • Cloning
    • Introduction to Cloning
      • Labs
        • Connect the Dots
    • Cloning Sprites
      • Do now
        • Star Wars Troopers
      • Labs
        • Lots of Balls
    • Communicating with Clones
      • Do now
        • Star Wars Troopers using Cloning
      • Labs
        • Fewer Balls
    • Quiz
      • Cloning
    • Space Invaders
    • Project
      • Space Invaders
  • Final Project
    • Design Basics
    • Research and Ideate
    • Defining Requirements
    • Building a Plan
    • Project Implementation
    • Project
  • References
    • How to's
      • Create Snap Account
      • Save & Share Projects
      • Snap Window
      • Sprites
      • Scripts
      • Movement & Position
      • Drawing
    • Readability
    • Snap elements
      • Motion
      • Looks
      • Sound
      • Pen
      • Control
      • Sensing
      • Operators
      • Variables
  • Glossary
Powered by GitBook
On this page
  • Touching an object
  • Touching color
  • Color is touching color
  • Ask and wait
  • Answer
  • Mouse x
  • Mouse y
  • Mouse down?
  • Key pressed?
  • Distance/direction to mouse-pointer/center
  • Color setting at mouse-pointer/sprite
  • Reset timer
  • Timer
  • Costume of stage/sprite
  • Sprite properties
  • Object
  • Url
  • Microphone
  • Video on
  • Set video transparency
  • Is a specific video setting on?
  • Set video setting to
  • Current date/time

Was this helpful?

  1. References
  2. Snap elements

Sensing

PreviousControlNextOperators

Last updated 5 years ago

Was this helpful?

Blocks in this category deal with the current conditions of sprites, the mouse, and the stage. For example, they can detect when sprites are touching, when one color is touching another or the current x and y position of the mouse.

Touching an object

The touching an object block shape

Example

Definition

](./assets/

Touching color

Example

Definition

](./assets/

Color is touching color

Example

Definition

](./assets/

Ask and wait

Example

Definition

](./assets/

Answer

Example

Definition

](./assets/

Mouse x

Example

Definition

](./assets/

Mouse y

Example

Definition

](./assets/

Mouse down?

Example

Definition

](./assets/

Key pressed?

Example

Definition

](./assets/

Distance/direction to mouse-pointer/center

Example

Definition

](./assets/

Color setting at mouse-pointer/sprite

Example

Definition

](./assets/

Reset timer

Example

Definition

](./assets/

Timer

Example

Definition

](./assets/

Costume of stage/sprite

Example

Definition

](./assets/

Sprite properties

Example

Definition

](./assets/

Object

Example

Definition

](./assets/

Url

Example

Definition

](./assets/

Microphone

Example

Definition

](./assets/

Video on

Example

Definition

](./assets/

Set video transparency

Example

Definition

](./assets/

Is a specific video setting on?

Example

Definition

](./assets/

Set video setting to

Example

Definition

](./assets/

Current date/time

Example

Definition

](./assets/

The touching color block shape

The color is touching color block shape

The ask and wait block shape

The answer block shape

The mouse x block shape

The mouse y block shape

The mouse down? block shape

The key pressed? block shape

The distance/direction to mouse-pointer/center block shape

The color setting at mouse-pointer/sprite block shape

The reset timer block shape

The timer block shape

The costume of stage/sprite block shape

The sprite properties block shape

The object block shape

The URL block shape

The microphone block shape

The video on block shape

The set video transparency block shape

The is a specific video setting on block shape

The set video setting to block shape

The current date/time block shape

Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text