Search Header Logo
CSD U3L17 Mouse Input Overview

CSD U3L17 Mouse Input Overview

Assessment

Presentation

Computers

6th - 8th Grade

Practice Problem

Easy

Created by

Patrick Trejo

Used 4+ times

FREE Resource

15 Slides • 15 Questions

1

media

Unit 3

Lesson 17 - Mouse Input

2

media
media

17.1 Overview

​You learn several ways to take mouse input. You also expand your understanding of conditionals to include else, which allow for the computer to run a certain section of code when a condition is true, and a different section of code when it is not.

3

Multiple Choice

In lesson 17, you will learn several ways to take mouse input.

1

True

2

False

4

media
media

17.2 If/Else Predict

​When you press the spacebar down, the balloon will increase and then decrease.

5

Multiple Choice

When you press the spacebar down, the balloon will increase and then decrease. This is an example of an if/else conditional.

1

True

2

False

6

media
media

17.3 If/Else Statements

7

Multiple Choice

An example of an If/Else statements: You may say that they want one animation if the sprite is moving to the left and a different animation if the sprite is moving to the right.

1

True

2

False

8

17.4 Reverse the Gears

​Make the gears spin the opposite way when the space bar is being pressed.

9

Multiple Choice

In 16.4 reverse the gears, make the gears spin the opposite way when the space bar is not being pressed by adding else in the conditional.

1

True

2

False

10

media

17.5 - Control the Gears

​Make the gears spin the opposite way when there is no user input.

11

Multiple Choice

To make the gears move in the opposite direction when there is no user input,

add an else, three rotations, and three counter patterns.

1

True

2

False

12

media

17.6 - Mouse Clicks

​Add code that checks whether the mouse is being pressed.

13

Multiple Choice

If the mouse is down, move the balloon up, otherwise move it down by using if else conditional, two y - properties and two counter patterns.

1

True

2

False

14

media
media

17.7 - World.mouseX

​Add an else to make the mixer shake when the mouse is on the other side of the screen.

15

Multiple Choice

Add an else to make the mixer shake when the mouse is on the other side of the screen.

1

True

2

False

16

media
media

17.8a - Ladybug Walk

Add code using the counter pattern to increase bug.x to make it move. The bug should only move if the mouse pointer is near the bottom of the screen.

17

Multiple Choice

Add code using the counter pattern to increase bug.x to make it move. The bug should only move if the mouse pointer is near the bottom of the screen.

1

True

2

False

18

media
media

17.8b - Ghost Moving with the Mouse

Write at least two if-statements to check for the location of the mouse. Make the ghost move in a different direction for each mouse location.

19

Multiple Choice

Write at least two if-statements to check for the location of the mouse. Make the ghost move in a different direction for each mouse location.

1

True

2

False

20

media
media

17.9 - Creature Shake

Change the code so that the creature only shakes when the mouse is pressed. Change the code so the directions only show when the user is not pressing the mouse.

21

Multiple Choice

​Change the code so that the creature only shakes when the mouse is pressed. Change the code so the directions only show when the user is not pressing the mouse.

1

True

2

False

22

media
media

17.10a - Twin Spirals

​Add code so that the spirals switch what they are doing when the mouse is pressed down.

23

Multiple Choice

Add code so that the spirals switch what they are doing when the mouse is pressed down.

1

True

2

False

24

media
media

17.10b - Mouse Input Bee

​You are going to make a bee sprite follow the mouse around the game area.

25

Multiple Choice

You are going to make a bee sprite follow the mouse around the game area.

1

True

2

False

26

media
media

17.10c - Mouse Input Bees

​You are going to make more than one bee follow the mouse around the game area.

27

Multiple Choice

You are going to make more than one bee follow the mouse around the game area.

1

True

2

False

28

media
media

17.10d - Salt Shaker Challenge

​Add a conditional that checks if mouseDidMove.

If the conditional is true, rotate the salt sprite randomly to the left or right.

29

Multiple Choice

Add a conditional that checks if mouseDidMove.

If the conditional is true, rotate the salt sprite randomly to the left or right.

1

True

2

False

30

Open Ended

How can you use if else statements in game design?

media

Unit 3

Lesson 17 - Mouse Input

Show answer

Auto Play

Slide 1 / 30

SLIDE