Grade 2 CT • Coding Your Dream • Day One

Grade 2Computational Thinker Coding Your Dream

DAY 1

Overview

Today I will learn how to sequence a project in Scratch Jr.

Lesson

Today we will be adding code to our Dream project. We will be using some of the advanced code blocks that we have used at the beginning of our unit to move your character (sprite) through your dream.

STEP 1.

  Directions: Follow along with your teacher to review some of the Advanced Code Blocks Links to an external site. that will be using in Scratch Jr. for this project.

Motion Blocks (Blue Blocks)

Go Home  sends the Sprite back to its original start spot.                       

Image of Go Home Command coding block   

Sound Blocks (Green Blocks)

POP lets the Sprite make a Pop noise. Other sounds are also an option here.

pop coding image

Sound Blocks (Green Blocks)

Play Sound lets the programmer record a sound or text.                    

play sound code image 

 

Looks Blocks (Pink Blocks)

Say Sound gives the Sprite a text bubble above their head. 

say code image 

Looks Blocks (Pink Blocks)

Appear makes the Sprite appear.     

show code image 

Looks Blocks (Pink Blocks)

Hide makes the Sprite hide from the scene.  

hide code image 

 

Control Blocks (Orange Blocks)

Set Speed  sets the speed of the sprite movement.                         

Image of Set Speed Command coding block 

End Blocks (Red Blocks)

End stops the code from progressing.                                                                                            

  Image of End Command coding block 

End Blocks  (Red Blocks)

Go to Page  ends the code and then moves to another page. The number at the top right corner, is the page it will go to. 

Image of Go to Page Command coding block 

 

Activity:

Since stories and dreams often sequence from one setting to another, our dream must connect from your bedroom scene to your dream scene and then back to the bedroom scene. 

STEP 2. SEQUENCING

  Directions: Follow along with your teacher to connect your background pages of your dream, and sequence them in order, using End Blocks. 

  • Open Scratch Jr. app
    • Screenshot of Scratch Jr. Icon
  • Open your saved Dream(Your Name) saved project. 
    • Screenshot of My Projects page with Dream Project in Scratch Jr.
  • Sequence your pages of your dream to each other.  Use the RED END BLOCKS to code this. 
    • Screenshot of Red END Blocks in Scratch Jr.
  • Sequence page 1 (sleeping bedroom scene) to page 2 (dream scene).
    • Screenshot of Red Page 2 Block in Scratch Jr.
  • Sequence page 2 (dream scene) to page 3 (waking up bedroom scene).
    • Screenshot of Red Page 3 Block in Scratch Jr.
  • Add an empty end block to any sprite (that is not you) on page 2.
    • Screenshot of Red End block in Scratch Jr.
  • Add an empty end block to the code on page 3 so it ends the dream.
    • Image of End Command coding block
  • Loop/Repeat any code that is repeated.
    • Orange Repeat Block in Scratch Jr.

 

  This course content is offered under a  CC Attribution Non-Commercial Share Alike Links to an external site. license. Content in this course can be considered under this license unless otherwise noted.