"Color () is touching (another color)" Block
-
Prerequisite
Description
The “color () is touching ()” block is a boolean block in the sensing category.
How does this block work?
This block tells us whether a color on the current sprite is touching another color.
The first input represents any color on the current sprite,
and the second input is the color of another sprite or the stage itself.
Animation
You can create a baseball game animation with the “color () is touching ()” block.
As shown below, when the yellow color of the bat touches the white color of the ball, the sprite says “Score”.