Draw when Mouse Clicked

Social Media - Depict and Deduce (Activity 3)

Video speed:

Overview

In this video, you’ll program the pencil to draw when the mouse button is pressed down using an if-else statement.

Instructions

  1. Add an "if-else" block.
  2. Make the "if" block check if the mouse button is pressed.
  3. If the mouse button is pressed, make the pencil draw.
  4. If the mouse button is not pressed, make the pencil stop drawing.

X

Hey, club member! Sign in to get a badge for each activity you do!