If we wish to check if two sprites touch eachother or a specific sprite is touching something on the screen, the easiest thing to do would be to check the color! Now you will findout how to do this.

To access the full video please subscribe to FLLCasts.com
- #1597
- 30 Mar 2020
We can check if the sprite is touching a specific color using the "touching color?" block. It is located in the grey block palette:
This block is a logic block, which means two things:
- It cannot be used on its own in the program, it must be used with other blocks such as the "if" block;
- It only gives us two results - True or Falce. True if it touches the color and false if it doesn't!
To set the correct color, we have two options. The first and easiest way is to select it from the game's screen. Thiss allows us to pick the correct color from the place we want without having to mess with the color parameter settings. The setting itself looks like this:
If we cannot use the first option for some reason, we can always set the color manually. For this purpose, we have three sliders, that set the following three aspects of the color:
- Hue - This slider gives us the base color that we will edit with the other two sliders.
- Saturation - this slider determins how saturated the color will be
- Value - This slider determins the value of the color or how bright it is going to be.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Keep 'em clean - remote Scratch game course
"Keep 'em clean" is a game that uses the players' real-life movement captured by a camera to control many "people" and push them towards a sink where they wash their hands! In this course, you will learn the basics of programming with Scratch, as well as using the "Video Sensing" extension to receive movement from the camera!
- 41
- 0:00
- 70

Lesson 8 - How to mess up the clean
Introduction
In this lesson, you will find out how to program the dirty clones to stain the clean ones!
How do you think that will happen?
- 4
- 3
- 5
- 3d_rotation 0