0 results for
ICT
Computing
Responsive image

Lesson 5 - Sensing

0 results forGuest
Overview
Flight Path
Learning Objectives
0 results forGuest
IDSkill_name
 5 I can use Sensing
 6 I can use variables and assignment

🏁 Learning Objective 16 :- I can use Sensing


Sensing

In maze, pong, or collide type games, you usually want a sprite to bounce back or move when it touches an edge or an object. This can be accomplished by using a Sensing block such as the ones shown to the left. These blocks are usually placed in a block and then an block (which are Control blocks) along with Motion blocks that tell the sprite how far to move. The sample at the right tells the sprite to turn right 180 degrees and then move 10 steps.

Click on the image on the right to see more.


Exercise - Bouncing Ball

Create a bouncing ball in scratch using the code below

Note:Don’t forget to create a ball first!

Scratch

Scratch Extension Question

Create another sprite, call it ‘floor’. Make it a rectangle at the bottom of the screen. Change the blocks on the ball sprite so that if it touches the floor it changes colour.


Update your learning objectives

control

🏁 Learning Objective 17 :- I can use variables and assignment


More Variables - Timer (Data Block)

You can also create a timer as a variable in the Data blocks in the same way that you created a Score block. Watch the video below to help you create a very simple countdown timer


Scratch Extension Task

Add some more blocks to your script so that when the countdown timer = 0. The cat says "Game over".
Scratch
Also Change the background.


Update your learning objectives

control

Your Scratch Project

Put together all the things you have learned and create your own interactive scratch project!
Scratch


Scratch Extension Challenge - 'Planning'

You need to think about the following:
  • How the game/story will begin (menu) instructions?
  • How to win the game, or how the story will end
  • Sprites you’ll need
  • Background(s) you’ll need
  • Success criteria: How you know if you project is successful? My project will be successful if…
  • control


    0 results forGuest
    Recent Comments

    Teacher Date: 2019-11-18


    Guest