1 of 18

Controller Game

2 J

Objectives

Resources

Materials

Students will make a controller game where a sprite moves when a button sprite it clicked. Other sprites are coded to do an action when the controlled sprite bumps into it.

  • Message Blocks
  • When Clicked
  • When Bumped
  • Movement

Scratch Jr

Book about Space

Slide Deck

SLIDESMANIA.COM

SLIDESMANIA.COM

Videos

Vocabulary

Activities

Sample Project

2 of 18

Lesson Title

Event

Message block

Vocabulary

2

Introduce: Discuss Events. Show sample project. Explain that this project uses a Message event to make the astronaut move when arrows are clicked. Have students move the correct direction when you tap the arrows on the screen (Slide 6)

Engage: Read a book about space. Suggested title - Fly Guy Presents: Space by Tom Arnold. Discuss some things students might put in a space scene.

1

4

3

Create: Have students build their project. They could choose to recreate the model program or choose their own scene and sprites.

5

Debrief: Do a gallery walk.

6

Model: Add space background and astronaut sprite. Open sprite editor and create a triangle shape to be a controller arrow. Open the new sprite again and then the editor. Rotate and paint a new color. Make 4 arrows and organize them on the scene

Model: Code each arrow to send a unique colored message when it is tapped. Code the astronaut to move the correct direction when it receives each message. Add additional sprites. Code them to move/respond when bumped.

SLIDESMANIA.COM

Videos

Vocabulary

Activities

Sample Project

3 of 18

SLIDESMANIA.COM

Videos

Vocabulary

Activities

Sample Project

4 of 18

Sample Project

SLIDESMANIA.COM

5 of 18

An action that causes something to happen.

Event

6 of 18

Move when the arrow is tapped

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

7 of 18

Build the Scene

  • Add a sprite

  • Add a background

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

8 of 18

Resize the Sprite

  • Shrink the sprite to fit in scene

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

9 of 18

Create Arrow Controllers

  • Create custom arrow buttons to use as controllers

2

1

4

5

3

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

10 of 18

Create Arrow Controllers

  • Copy, rotate, & paint 3 more arrows

2

1

3

4

5

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

11 of 18

Broadcast Block

HINT: click the arrow to choose from 6 different colored messages

Send Message

Receive Message

Use these blocks together to cause an algorithm in one sprite to trigger an algorithm in a different sprite.

Use this block in Sprite#1

Use this block in Sprite#2

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

12 of 18

Code Arrows

  • Code a message for each button sprite to send to the astronaut sprite when it is clicked.

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

13 of 18

Code Astronaut

  • Code the astronaut to move the correct direction when it receives messages when each button sprite is clicked

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

14 of 18

Test Code

  • Put your project in full screen mode
  • Test the buttons by clicking on them to make sure the astronaut moves in the correct direction.

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

15 of 18

Add things in Space

  • Add more sprites to the background.

1

2

  • Resize sprites as needed and arrange on scene

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

16 of 18

Code sprites with When Bumped Block

  • Code the space sprites to do an action when the astronaut bumps into it.

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

17 of 18

Sample Code

SLIDESMANIA.COM

Vocabulary

Instructional

Videos

Code

Activities

Sample Project

18 of 18

Credits

Template by SlidesMania

Fonts used in this presentation: Roboto Slab, Lexend

Thank you!

SLIDESMANIA.COM

Videos

Vocabulary

Activities

Sample Project