Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    "Color () is touching (another color)" Block

    2D Blocks
    1
    1
    155
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Prerequisite

      • Working with Blocks
      • Painting a Costume

       

      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”.


       

      1 Reply Last reply Reply Quote 0
      • First post
        Last post