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.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Getting Started With Alice: The Basics By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Create a Simple Game in Scratch
Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 2: Using Methods.
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Mission Technology Introduction to Scratch! June 2007.
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Fish Chomp. 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.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Introduction to Scratch!
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
Objects and Methods in Scratch 1. 2 Scratch environment Stage is at upper right (where actors act and information is displayed) Sprite is another name.
How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
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.
Fish Chomp. 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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Recording Your Script 1)Find a quiet place to record. 2)Open up your phone’s recording app. 3)When recording, remember: Speak very clearly Enunciate Do.
Photo Story Creating your own!. What is Photo Story? Photo Story is a way to create slideshows with added narration, effects, transitions and background.
The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
Illuminating Computer Science CCIT 4-6Sep
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
WHAT IN THE WORLD IS SCRATCH??? AN INTRODUCTION TO COMPUTER PROGRAMMING By MD Showman.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
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.
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.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Computer Programming Modeling a Passive Solar Home.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Teaching Kids Programming with Chromebook Digital Convergence Lab, NIU.
Recording Your Script and Creating Your Podcast !!You are not finished until you have completed all steps on all of the slides up to and including Slide.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Getting Started With Alice: The Basics. Step 1: Background Open up Alice, and choose a background for your Alice world. Your world is something you can.
Introducing Scratch Learning resources for the implementation of the scenario
The Essentials of Alice (Bunny)
Create a Halloween Computer Game in Scratch
Dancing on Green Light.
Scratch for Interactivity
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.
Introduction to Object-Oriented Programming
Go to =>
Scratch for Storytelling
Go to =>
Go to =>
Image #1 Getting Started
Getting Started with Scratch
Game development using Scratch
Creating a Simple Game in Scratch
Presentation transcript:

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 using events

Backgrounds  Click the stage icon in scratch, it is the white box on the bottom right of the screen.  Now click the backgrounds.

 We are now going to add in 5 backgrounds.  Click import, then select dance-1  Continue selecting dance-1 through to dance-5  You can also delete the white background

 We now need to make the 5 backgrounds appear in sequence.  Click the stage icon, then click scripts  We now need to make the 5 backgrounds appear in sequence.  Click the stage icon, then click scripts.  Add the following commands, ask if you need help, or are not sure how to get the command on the screen.

 Click the green flag.  How long will the background keep changing ?  How do we stop it ?

Music  A disco needs music !  Select sounds  Click Import  Select Music Loops  Select Kalimba  Delete pop

 We now need to play the music  Make sure the stage icon is clicked, then click scripts  We are going to play the music in a forever loop.  Make sure that the sound command has the “until done” at the end.  Now click the green flag to see our disco  Don’t forget to click the red button to make it stop !

Animations  We now have our dance studio.  Next we have to add our dancers, to do this we will learn how to animate them to make it look like they are dancing.  What is an animation ?

Introducing Cassy !  Right mouse click the cat sprite and click delete  Next click the icon to create a new sprite  Select People  Then select “cassy-chillin”  Rename the sprite to read “Cassy”

 We will now give Cassy some costumes, when these are displayed quickly it will make her look like she is dancing.  Make sure you have the Cassy sprite selected then click “Costumes”.  Click Import  Select the first Cassy-dancing picture  Click ok  Repeat the process until you have selected all of the Cassy dancing images.

 Next we need to animate Cassy  First we always want Cassy to start with the same costume.  It is important for computer programs to initialise correctly.  Next we get Cassy to wait for 2 seconds  This is because she wants to listen to the beat before she starts.  Finally she starts to dance.  Select the repeat loop and change the number to read 20  Pull the next costume command down and place it in the repeat loop.  What happens when the green flag is clicked now ?  To slow the animation down we need to pause between each costume.  Add a wait for ½ second and click the green flag again.  Remember ½ a second is 0.5

Events  We now have Cassy dancing  Next we want to add another dancer  We will make them talk to each other  Then they will dance together  To do this we co-ordinate our two dancers using something called “Events”.  What is an event ?

 First we will create a second dancer.  Click the “New sprite from file” icon.  If you are not already in the People folder, select it then select “breakdancer1”.  Rename the dancer, we will call him “dude”  The picture of the boy will have appeared on the screen.  Using the mouse drag the two dancers to move then apart

 Next we will raise an event from the “Cassy” sprite when the dance has finished.  Make sure you have clicked Cassy  Then click Scripts  Add the broadcast event to the end of the block.  Next click the down arrow on the broadcast command  Then click “new”  Type in the name of the event. We will call ours “Dance finished”

 We are now broadcasting an event when Cassy finishes her dance.  We now want “Dude” to react to that event.  Click the sprite “Dude”, the click scripts  Drag the “When I receive” command across. It will already have the name of the event we are listening for in it.  Next we want to do something when “Dude” hears the event.  Drag the following speech across.  Edit the text as shown.  Now click the Green Flag.  What happens when Cassy stops dancing ?  Don’t forget the red button stops !

 We now need to let Cassy know we have asked a question.  Make sure you have clicked the “Dude” sprite.  Add a new broadcast event and add it to the end of the speech.  Click the drop down and select new.  Name the event “Want to dance ?”  Now click the “Cassy” sprite, then click scripts.  We want Cassy to respond to the question.  Add a new “When I receive” event and select the “Want to dance ?” event.  Add a “say” command to the event  Click the green flag !

How do our events communicate ?

Review  We’ve shown how you can change backgrounds  How you can animate a sprite  How you can raise and respond to events.

If we have time  We will get both Cassy and Dude dancing.  First import some new costumes for Dude.  Import costumes 2 though 4

 Finally make sure that the scripts for Dude and Cassy are as shown below.  Note that we’ve added a new event that they both need to respond to.  Lets Dance !!!!!