"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 inputis 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”.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login