sprite2 = edge touching = scratch cat touching edge instead of using the if block to set a variable put the boolean in the set variable to block.