22
Introduction to Scratch

Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Embed Size (px)

Citation preview

Page 1: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Introduction to Scratch

Page 2: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

What is Scratch?• Scratch is a control program that enables you to create

your own interactive stories, animations, games, music, and art

• The name Scratch comes from the scratching technique used by hip-hop disc jockeys, who spin vinyl records back and forth with their hands to mix music clips together in creative ways. You can do something similar with Scratch, mixing different types of media clips (graphics, photos, music, sounds) in creative ways.

Page 3: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Intro to Scratch – Part 1

Cat & Mouse

Page 4: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task 3Cat and Mouse Task

Page 5: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

This is sprite1, it comes already loaded in the SPRITE LIST and has already been placed on the STAGE

Task: Right Click and delete sprite1 from the SPRITE LIST

Page 6: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Click on the insert new sprite button.

Page 7: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Select the sprite called cat2 from the animals folder.

Page 8: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Rename the sprite and call it cat. Remember to always call new sprites sensible names!

Page 9: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: From the control menu, drag and drop this rule into the SCRIPTS AREA

Page 10: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: From the control menu, drag and drop the forever rule into the SCRIPTS AREA and join it together.

Compatible rules can be joined together in the SCRIPTS AREA

Page 11: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: From the motion menu, drag and drop the point towards rule into the SCRIPTS AREA and join it inside the forever rule

Task: choose mouse pointer from the drop down list.

Page 12: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: change number of steps to 3.

Task: From the motion menu, drag and drop the move 10 steps rule into the SCRIPTS AREA and join it underneath the point towards rule.

Page 13: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: run your program by pressing the green flag.

Page 14: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Notice how the co-ordinates change as you move the mouse and sprite.

Page 15: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Save your work as cat and mouse in your new Scratching The Surface Folder and open up a new blank Scratch screen

Page 16: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Intro to Scratch – Part 2

Control the Crab

Page 17: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Click on the insert new sprite button.

Page 18: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Select the sprite called crab1-a from the animals folder.

Page 19: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Rename the sprite and call it crab

Task: click the only face left-right button.

Page 20: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: Build and test the following script for the crab sprite.

Task: Add a further 3 scripts to make the crab move in all four directions.

Page 21: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task: click the can rotate button.

Task:

• What happens now when your crab moves?

• Can you explain why?

Page 22: Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,

Task 4 – Over to you!

• Have a go at creating your own program

• Take a screenshot of your finished code – explaining what the code is doing