Monday, 25 January 2016

Scratch - Lesson 2 - 'IF'

Lesson Objectives 
LO1 To understand how to use selection programming using 'if' statements


Outcomes
Red - You will be able to explain what selection is
Amber - You will used an IF block for your enemy character
Green - You will have used an IF ELSE block on your good character




Starter



Main


Task 1: 'If' in Scratch
a) Launch your Scratch game from last lesson
b) Add some code blocks to your game for the enemy sprite that:
  • makes the enemy sprite move in a random direction
  • if touching the edge bounce away
Try experimenting with the degrees and steps














Task 2: If Else

Task 3: 'If Else' in Scratch
a) Edit the code blocks of your main character sprite to include an 'If Else' statement
Try changing the 'mouse down?' block and the timings on 'say'












Extension 

Add in some If and If Else statements of your own into the game


Plenary

a) Open your Scratch Evidence Document that you started last lesson
b) Complete the Lesson 2 section
c) Save your work


Homework

Complete the next task Task 6 Scratch Keywords in your HomeStudy Booklet

No comments:

Post a Comment