Mouse Variables
Exploration
- Duplicate this Model.
- Run the sketch.
If you’re feeling comfy, you can try:
- Try putting
mouseXandmouseYin different places in the code. - Tinker more. Try to make a program that’s different than everyone else’s!
Notes
video (0:00 - 5:33)
Vocab
variable = a word that represents a number that changes (varies)
Practice
- Duplicate this starter code.
- Move your mouse around the screen.
- Change the shapes inside the box to make it look like a robot.
- Make sure the robot moves with the box.