Unit 7.6 - Control and Simulations
L2 P skills used
Making Links
Noticing
Imitation
Collaboration

 

Video Tutorials
How to add or delete a sprite
How to add sound
How to control by arrow keys

How to save the file

 

 

Other Resources

Getting started Guide:PDF

Ball game

Dancing girl

Pong

 

Homework

Define the following keywords:

Loop, Sprite, Stage, Sensor and Input.

Due: Next lesson

 

 

Lesson 1: Sensors, Loops & Operators

Learning Objectives
Will work in a group to understand about various type of sensors
Will understand how and why to use loops and functions to animate simulations
Will understand the different operators and develop the simulation further
Learning Outcomes All students will be able to animate the baseball and beachball. Most students will be able to add sound to their animations. Some students will be able to control the Basketball with the arrow keys.

Starter Activity: Students watch the i-penguin; discuss and identify in groups the various type of sensors it uses.

Sensors measure physical qualities like heat, sound, pressure, humidity and light. They send the signal back to the computer.

Task 1: Make the beachball and the baseball to bounce off the walls (Level 3). Use the following video tutorials to help you.

How to add or delete a sprite

Hint: The instructions for making the Baseball bounce are below:

Making the ball bounce off the wall

Task 2: Making the balls bounce off each other (Level 4). When the beachball and the baseball touch (sensors?) each other or the basketball- they must bounce off in the opposite direction; not continue to travel in the same direction as they do right now.

Extension: (Level 5C) Can you make the balls produce a sound when they hit each other? If you are feeling brave - produce a different sound when any of the balls touch the basketball. This video tutorial will help you.

Task 3: The basketball. The basketball should produce a sound when any of the other balls hit it. The longer you can protect your basketball from being hit by other balls - the higher you score is; else the game starts again.

Extension:( level 6) How are you going to control the basketball with the arrow keys? You should be able to move the Basketball in all 4 directions using the arrow keys. This video tutorial will be able to give you some hint.

Controlling a sprite with Keys

You think you are an expert? Excellent! Generate the score..

Hint: If timer is more than 5 and less than 10 say "Score 5 points"

Generate score