Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
Mission Technology Introduction to Scratch! June 2007.
Partners Computer #Partner APartner B 1 Bachmeier, EmilyMuniz, Olivia 2 Betz, MiahRatz, Jordan 3 Brundage, AmandaRipperton, Jacklynn 4 Cretsinger, SierraRundall,
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.
ITEC Winter An intro to programming concepts with Scratch Quick intro for college citizens. George Stockman MSU CSE.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Scratch Workshop Thursday, August 26, 2010.
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster June 2006.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
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!
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.
Partners Comp# Partner APartner B 1 Ancona, SamanthaManternach, Hailey 2 Black, RyanMcNeil, Maddie 3 Conger, KevinOhland, Rebecca 4 Day, MerciOtterbein,
Introduction to Scratch Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
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.
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
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.
From last time… Explore the blue commands from the motion menu Find at least three ways to get the sprite to move to the UPPER LEFT corner.
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.
 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.
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster Barb Ericson Dec 2007.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Review for Final June 13, 2016.
Create a Halloween Computer Game in Scratch
Commands in Scratch.mit.edu
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.
Scratch for Interactivity
Introduction to Object-Oriented Programming
Learn… Create… Program
Introduction to Scratch!
Go to =>
Learn… Create… Program
Scratch for Storytelling
European Computer Driving Licence
Image #1 Getting Started
Learn… Create… Program
Learn… Create… Program
Game development using Scratch
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Presentation transcript:

Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa

Concept Summary The layout of the Scratch stage Basic sequencing of commands The Motion and Pen menus The repeat command from the Control menu

Recall from this morning… “Scratch is a free programmable toolkit that enables kids to create their own games, animated stories, and interactive art”

This afternoon’s focus “Scratch is a free programmable toolkit that enables kids to create their own games, animated stories, and interactive art”

Choose a different Sprite! While the cat is a good first step, he isn’t always the character we want to work with You can choose a different sprite to program from a library in Scratch, or you can draw your own!

Choose Your Sprite! To choose a sprite from the Scratch library, click on the Folder with a Star icon. When you hover your mouse over it, it will say “Choose new sprite from file”.

Choose Your Sprite! Open the folders of the different categories of sprites. (you may use those loaded with Scratch or any standard image file). Choose one that you’d like to experiment with by double clicking on it.

Choose Your Sprite! You can have more than one sprite in your animation! For this demo I am going to load “Dan5” and “Marissa”

Choose Your Sprite! Once you have the sprites that you’d like to program, you can delete the orange cat sprite by clicking the scissor icon and clicking on the cat! Make sure that you click on the arrow icon before you do anything else – otherwise, you’ll delete something that you really wanted!

Choose Your Sprite! You can also right click on the icon to delete that sprite

Resize Your Sprite! You can make your sprite larger or smaller by using the “grow sprite” or “shrink sprite” icons. You click on one of these icons, then click on your sprite until it is the size you’d like.

Naming your sprites! Scratch uses the name sprite# by default To make things more helpful we normally want to assign our sprites meaningful names. You do that with the text box above the sprite’s script area.

Choose Your Background! Right now, you have a plain, white background – boring! You can also change your background by choosing one from the Scratch library or creating your own!

Choose Your Background! Click on the Stage: Now, select the “Backgrounds” tab!

Change Your Background! You can experiment with creating or importing your own background later, but, for right now – choose one from the library by selecting Import.

Change The Background! From this screen, you can choose one of the category folders, and select a background that you like by double clicking on it!

CS4HS Summer 2010 Change The Background! I chose the “hall” background from the “indoor” category.

CS4HS Summer 2010 Sidenote : While I didn’t use it this morning… Depending on how you want to introduce Scratch you may want to consider using the graph paper background.

Now, We’re Ready to Program!

Changing a Sprite’s Looks Click on the Looks menu. –Take a few minutes to look at your options.

Changing a Sprite’s Looks Click on the Looks menu. –Take a few minutes to look at your options. The one we are interested in right now is the “say.. for” block (notices, “square-edged” blocks expect text).

Let’s consider the following script Marissa : Knock, Knock. Dan : Who’s there? Marissa : Dwayne. Dan : Dwayne who? Marissa : Dwayne the bathtub. I’m dwowning.

How could we program this? Divide the lines between each sprite Sequence them together

What is the problem? The “actors” talk over the top of each other –We didn’t think this through carefully.

Let’s consider the following script Marissa : Knock, Knock. (but Dan waits) Dan : Who’s there? (but Marissa waits) Marissa : Dwayne. (…) Dan : Dwayne who? (…) Marissa : Dwayne the bathtub. I’m dwowning. (…)

What is the solution? Use the “wait” block from the control menu!

What is the solution?

Changing a Sprite’s Looks Recall the Looks menu. –One of the options under here was changing a costume –Let’s improve the animation with some costumes.

Changing a Sprite’s Looks Select the Dan Sprite Select the “Costumes” tab Select the import button Navigate and select “Dan4” under the “people” folder. –Notice that Scratch gives the costumes a different name from the “image” name –Rename this costume “thinking”

Changing a Sprite’s Looks Let’s have Dan “think” for two seconds before saying Dwayne who? This means: –Changing the costume at the right time –Waiting two seconds –Changing back to his original costume –(It also means having Marissa wait longer since Dan’s turn takes longer).

Changing a Sprite’s Looks

Another option for coordination The last technique we used involved counting (very carefully) how long we expected things to take and then having sprites wait for a set amount of time.

Another option for coordination But what happens when –there are large sets of collaborating sprites (the count is complicated)? –the waiting depends on something specific happening (the count is impossible to determine)?

broadcast-ing messages between sprites Scratch allows sprites to listen for messages from other sprites. When one sprite wants to signal the others it uses broadcast to send a message.

Under Marissa’s script Select the control menu from script Drag out the broadcast block Select the arrow in the text box Select “new” Give the message name as “playsounds”

Sound! Now, let’s add some sound to our animation! There are many different ways to get sound in your animation. The first way we’re going to experiment with is by importing a sound from the Scratch sound library.

CS4HS Summer 2010 Importing Sound From The Scratch Sound Library Click on the sprite you want to have sound In this example, let’s actually add it to the stage Click on the Sounds tab and select Import.

Scratch Sound Library You will see different categories of sounds that you can use in your animation that are available for you in the Scratch library.

CS4HS Summer 2010 Inserting Sound Once you find a sound that you like, select it and click on OK. –(I selected “laugh-female” under “human” AND “gong” under “percussion” You will see the sound you just selected show up under the Sound tab.

Play Your Sound If you click on the “Play” button, you can preview your sound.

Adding The Sound To Your Animation Now, you’re ready to add the sound to your animation! Click on the Script tab. Select the sprite you want to have sound. Now select the Sound button.

Adding Sound Now, select one of the blocks that says, “play sound…” Select your sound from the drop-down menu by clicking on the triangle next to “pop”.

Under the Stage’s script Select the control menu from script Drag out the When I receive block Select the arrow in the text box Select the message named “playsounds” Add in the two sounds

Concept Summary Creating new sprites Changing backgrounds and costumes Sequencing and coordinating actions between multiple sprites. The Looks and Sounds menus The broadcast command from the Control menu