Home arrow Unit 4 arrow Lesson 17

Lesson 17 - Mouse and Keyboard Control


Objective: To learn how to receive information about the mouse, and whether a particular key of keyboard is being pressed down. 

 


Tutorial Part 1: Mouse Report

Scratch Activity: Reproduce the actions in the tutorial. Experiment by modifying the settings and parameters used in the tutorial. 

  


Tutorial Part 2: Pressing Keys

Scratch Activity: Reproduce the actions in the tutorial. Experiment by modifying the settings and parameters used in the tutorial. 

  


Extensions:

Experiment by drawing shapes defined by the mouse cursor.

Experiment by playing sounds using the keyboard keys (e.g.: asdf.)

Experiment by moving one sprite with the mouse and another with the arrow keys.

Experiment by changing the color of the background by pressing keys.

 
   
Main Menu
Home
Scratch 2
Overview
Unit 1
Unit 2
Unit 3
Unit 4
Unit 5