Mouse Variables

Exploration

  1. Duplicate this Model.
  2. Run the sketch.

If you’re feeling comfy, you can try:

  1. Try putting mouseX and mouseY in different places in the code.
  2. Tinker more. Try to make a program that’s different than everyone else’s!

Notes

video (0:00 - 5:33)

questions

Vocab

variable = a word that represents a number that changes (varies)

Practice

  1. Duplicate this starter code.
  2. Move your mouse around the screen.
  3. Change the shapes inside the box to make it look like a robot.
  4. Make sure the robot moves with the box.