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.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Events The brown events block in Scratch starts script's when certain things happen. For example, when the user presses a key, clicks sprites, or uses.
Harry Potter Scratch Game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Introduction to Scratch!
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
Introducing Scratch the Cat
ACO 101 Making a program. mb_your_brain_on_improv.html mb_your_brain_on_improv.html.
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.
Unit 3 Music and Sound Evangel College S.2 ICT.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Image #1 Getting Started
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Variables and Random Numbers Computer App Session 4.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Building the Simulation Computer App Session 12. Building the Simulation Learning Objectives: I can build and code a working version of my simulation.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
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.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
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.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Computer Programming Modeling a Passive Solar Home.
Changing Backgrounds 3 methods of achieving this.
Teaching Kids Programming with Chromebook Digital Convergence Lab, NIU.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Using MIT Scratch for Programming and Control Programming 9.
Scratch for Interactivity
Madlib-Input, Strings, and Lists in Scratch
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.
© A+ Computer Science -
Spanish Mad libs with Scratch
Creating a Tank Game in Scratch
Unit 2 Getting Started With
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
Areas of the SCRATCH 2 Screen
Recap the basics Lesson 1.
Welcome to SCRATCH.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Stopwatch Cards Stopwatch Cards
Image #1 Getting Started
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Getting Started with Scratch
Recap the basics Lesson 1.
© LaunchPad Learning Inc. All rights reserved.
Stopwatch Cards Stopwatch 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
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch 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
Stopwatch Cards Stopwatch Cards
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

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. I will clone sprites in Scratch to create copies of an existing sprite.

Cloning in Scratch In Scratch, you can create a copy of any sprite, and it’s called a clone. Clones are used when you want many of the same type of sprite, and they all act the same way.

Cloning in Scratch Any sprite can create a clone of itself or another sprite. Any sprite can create a clone of itself or another sprite. You can have a script that runs when the clone is created. You can have a script that runs when the clone is created. You can delete a clone. You can delete a clone.

Create a new project Choose a ball for your sprite. Choose a ball for your sprite. From the Events category, drag “when the space key pressed” into the code area. From the Events category, drag “when the space key pressed” into the code area. From the Control From the Control category, drag category, drag “create a clone of “create a clone of myself” underneath myself” underneath it. it.

Press the space key. It appears that nothing has happened. Drag the ball from its current position, and you’ll see that you have two of them now. (You didn’t see two at first because when the clone is created, it is exactly the same, including the position) Press the space key. It appears that nothing has happened. Drag the ball from its current position, and you’ll see that you have two of them now. (You didn’t see two at first because when the clone is created, it is exactly the same, including the position) Lets add code to move it when it’s created. Lets add code to move it when it’s created. Click the stop button. Click the stop button.

From the Control category, drag “when I start as a clone” into the code area. From the Control category, drag “when I start as a clone” into the code area. From the Motion category, drag “go to x: __ y: __” underneath. From the Motion category, drag “go to x: __ y: __” underneath. Change x to 0 and y to 140 Change x to 0 and y to 140

Now, press the space bar and two balls will appear. Now, press the space bar and two balls will appear. Click the stop button again. From the Control category, add “wait 1 sec” and then “delete this clone”. Click the stop button again. From the Control category, add “wait 1 sec” and then “delete this clone”.

Your turn: Your new project: – Create a new sprite that will throw the ball – When the space bar is pressed, a ball sprite should be cloned, go to the other sprite, then move 10 in the x direction for 20 times, and then delete itself. (think about what kind of commands you will need) Looks – Use the “hide” and “show” blocks in the Looks category, so that the basketball is hidden to start with, and then is shown when starting as a clone.

Your code might look like this