scratch - lesson 2

8
Using the keyboard to control your sprite Task: Can you arrange these commands to make your Sprite move to the right? Can you make it happen for all 4 arrow keys? Extension: Can you also include costumes so that the cat appears like it is walking?

Upload: tim-bowry

Post on 01-Apr-2016

234 views

Category:

Documents


6 download

DESCRIPTION

Scratch teaching

TRANSCRIPT

Page 1: Scratch - Lesson 2

Using the keyboard to control your spriteTask: Can you arrange these commands to make your Sprite move to the right?

Can you make it happen for all 4 arrow keys?

Extension: Can you also include costumes so that the cat appears like it is walking?

Page 2: Scratch - Lesson 2

Objectives

Content: Learning how to use IF command so that the program can make a decision. Be able to plan your code.

Process: By experimenting with example commands and practising.

Benefit: Your code will be more advanced and easier to write if the problem has been solved through planning first.

Page 3: Scratch - Lesson 2

Save an image of your script and annotate in PowerPoint

What does forever do?What does the if command do?What about point in direction?

IF the Right Arrow has been pressed

Page 4: Scratch - Lesson 2

Jump buttonThink! Why do things always fall to the ground?

How can we replicate this in our game?We will write pseudo-code as a class, you

need a copy in Word/PowerPoint.

Page 5: Scratch - Lesson 2

Solving the Gravity problem• Sprite needs to fall down the screen until it

touches the ground.

Write your ideas for scratch code in Word/PowerPoint. It can be in plain English.

Page 6: Scratch - Lesson 2

Solving the Jump problem

When a button is pressed, the sprite needs to move up the screen to ‘jump’.

Write your ideas for scratch code in Word/PowerPoint. It can be in plain English.

Page 7: Scratch - Lesson 2

Make a floor

1)Make a new Sprite

2)Draw a line

Page 8: Scratch - Lesson 2

Try putting these in the correct order