Objective of the lesson

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Quiz Time What button stops the sprite from vanishing off the screen?
Meet Me on Mars Lesson 7 Variables and Messages. Events and Variables 1. Click the _________ button 2. When ________ clicked, set ______ to ____ 3. Now,
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Scratch Programming Lesson 2 First glance to programming logic.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
1 Project designed and created by M. Shajith Kumar.
The If Block. IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
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 and choose a new.
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.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Using MIT Scratch for Programming and Control Programming 9.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Objective of the lesson
MMoM - Lesson 4.
BBC Microbit.
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
Objective of the lesson
BBC Microbit.
Dance Cards Dance Cards
BBC Microbit.
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Recap the basics Lesson 1.
BBC Microbit.
Objective of the lesson
Using the sensor Lesson 5.
Objective of the lesson
Dance Cards Dance Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Objective of the lesson
Stopwatch Cards Stopwatch Cards
Image #1 Getting Started
Dance Cards Dance Cards
BBC Microbit.
Recap the basics Lesson 1.
Using the sensor Lesson 5.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Mod 2 Lesson 2 Repeating with loops
Creating a Simple Game in Scratch
Introducing Scratch and Creating Sprite
Stopwatch Cards Stopwatch Cards
Lesson 1 – using the LED lights
Dance Cards Dance Cards
Objective of the lesson
Stopwatch Cards Stopwatch Cards
Animate a Sprite. By M, M and C P6
Dance Cards Dance Cards
Presentation transcript:

Objective of the lesson Use Blockly to create Animations All of you will: Create an image using the LEDs Most of you will: Create an animated image using the LEDs Some of you will: Control the image using the buttons

Go to www.codebug.org.uk Click on CREATE and then on the Blockly Tab You will see a simulation of the Codebug. The Triangular Play button can be used to run your program and view what will happen once you download to your Codebug

We will make an animation Add a repeat while true loop to keep the animation going forever

Add a draw sprite block Keep the x,y at 0,0. This means that the animation will start on the bottom left

Add a build sprite block Tick the LED pixels that you want to come on

Add in a second draw sprite and build sprite block Draw a second image The problem will be that the images will play immediately after each other

Add in pauses inbetween each of the animations Add in pauses of 1000ms (1 second)

Challenge Change the lengths of pause between the animations Add in additional animations Make the animations come on only if button A is pressed Make a different animation come on if button B is pressed

Answers