Stopwatch Cards Stopwatch Cards

Slides:



Advertisements
Similar presentations
A Christmas Scratch game
Advertisements

Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Image #1 Getting Started
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner of the stage and.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Sprites & Backdrops. Sprites Sprites are the actors that perform the commands in your script. The cat is the default Sprite. Scratch has many other Sprites.
Customise & Explain your game
Commands in Scratch.mit.edu
Broadcasting (Adding a new level)
How to work with your sprite
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Music Cards Music Cards
Dance Cards Dance Cards
Music Cards Music Cards
Getting Started with Scratch
Objective of the lesson
BBC Microbit.
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Areas of the SCRATCH 2 Screen
Objective of the lesson
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Dance Cards Dance Cards
Music Cards Music Cards
Dance Cards Dance Cards
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Image #1 Getting Started
Game Over Module 4 Lesson 2.
Music Cards Music Cards
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Getting Started with Scratch
Making) Melody timer.
Music Cards Music Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Dance Cards Dance Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Scratch Dance Routine.
“A Day in the Life” CTE Enrichment Grades 3-5 Computer Science Unit
Dance Cards Dance Cards
Presentation transcript:

Stopwatch Cards Stopwatch Cards Create a Variable Start the Clock Stop and Reset Get Moving Time the Sprite Background Effects

Add a changeable value on the screen. Create a Variable Create a Variable GET READY GET READY Add a changeable value on the screen. Choose in the Blocks Palette. Add a checkmark to your variable to make it appear on the screen. ADD THIS CODE ADD THIS CODE TRY IT TRY IT Click the A button to advance the number on the screen. 1

Add a loop to increase the time on the clock. Start the Clock Start the Clock GET READY GET READY Add a loop to increase the time on the clock. A stopwatch should advance each second. A forever loop will increase the time as long as the program is running. ADD THIS CODE TIME will increase by 1 each second. TRY IT Test your timer against a clock. Does the time change each second? 2

Control your stopwatch with the A and B buttons. Stop and Reset Stop and Reset GET READY GET READY Control your stopwatch with the A and B buttons. Add a RESET and a STOP code. ADD THIS CODE TIME will return to 0 each time the A button is pressed. A B TRY IT Click each button on the micro:bit and see how they affect the time displayed on screen. CHALLENGE: Can you change your stopwatch into a countdown clock? 3

Make your sprite move as your stopwatch advances! Get Moving Get Moving GET READY GET READY Make your sprite move as your stopwatch advances! Click the tab. Make sure your sprite has more than one costume. Choose a sprite. ADD THIS CODE TRY IT What happens when your sprite reaches the end of the screen? Add these codes into the loop to fix the problem! 4

Time the Sprite Time the Sprite GET READY GET READY Let Scratch decide how many seconds your sprite will move. Use your stopwatch to figure it out. Start your sprite with the A button. This will make the stopwatch and the sprite move at the same time. ADD THIS CODE Let Scratch decide how long the code will run. Change the number to affect the sprite’s speed. TRY IT How long did the sprite move? Freeze the clock by pushing the B button on the micro:bit when the sprite stops. 5

Use graphic effects to alter your background as the program runs. Background Effects Background Effects GET READY GET READY Use graphic effects to alter your background as the program runs. Choose a background. Click the Backdrops tab. ADD THIS CODE TRY IT TRY IT Experiment with other background effects. CHALLENGE: Reset your graphic effect. Where should this block go in your code? 6