20
Lesson 2 Add another Sprite to your program Change the background of your program Make your character speak Make your character change colour

Computer Coding with Scratch: Lesson 2_primaryschoollessons

Embed Size (px)

Citation preview

Page 1: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Lesson 2

• Add another Sprite to your program• Change the background of your

program• Make your character speak

• Make your character change colour

Page 2: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Talk to your partner about what you

learned last week about computer

coding.

What is ‘coding’

? What household objects need code

to work?

Did you discover anything new on

Scratch?

Page 3: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Add a Sprite to your Program

Click on the ‘New Sprite Button’.

Page 4: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Double click on the Sprite you want to add.

Page 5: Computer Coding with Scratch: Lesson 2_primaryschoollessons

You can then move your Sprite around the screen with your mouse!

Page 6: Computer Coding with Scratch: Lesson 2_primaryschoollessons
Page 7: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Click on the ‘New Backdrop’ button.2. Add a Background to your Program

Page 8: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Double click on the backdrop of your choosing.

Page 9: Computer Coding with Scratch: Lesson 2_primaryschoollessons
Page 10: Computer Coding with Scratch: Lesson 2_primaryschoollessons

3. Make your Character Speak Double click on the Sprite you want to make speak. This will

get rid of the background scripts.

Page 11: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Click on the ‘Scripts’ button to bring up your Sprite’s scripts.

Page 12: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Click on the ‘Looks’ category to bring up the speaking action.

Page 13: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Drag the ‘say Hello!’ block onto your canvas. Change the words to ‘Hi!’

Page 14: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Go into ‘Events’ and add a ‘when __ clicked’ block to the ‘say Hi!’ block.

Page 15: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Click on the red stop button to stop the speech.

4. Make your Character Green

Page 16: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Click on the ‘Looks’ category.

Page 17: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Drag the ‘change color effect by 25’ block onto the canvas.

Page 18: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Changing the number ‘25’ to another number will change his colour… just remember to hit stop after trying out each new

colour!

Page 19: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Challenge!• Create a new program (Press ‘File’ and ‘New’). Don’t save your old

project.

• In your program, I would like you to:

1. Add an apple sprite and put it on the right hand side of the screen.2. Move your cat to the left of the screen. 3. Change the background/backdrop.4. Make your cat walk across the screen until he reaches the apple.5. Say ‘Yum!’ when he reaches the apple (Add a ‘wait 5 sec’ block

(‘Control’ category) after this ‘Yum’ block so that he won’t immediately turn green!).

6. Turn green after saying ‘Yum!’.7. Save by hitting ‘File’ and ‘Save as’. Save the file into your USB key

folder (under the ‘My Computer’ heading).

Page 20: Computer Coding with Scratch: Lesson 2_primaryschoollessons

Finished Product!