Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
My Internet Safety Guide I have used scratch to program a guide to internet safety using QR codes.
SCRATCH Lesson Two – Interactive Concepts Using Sensing, Operators, and Variables.
Create a Simple Game in Scratch
Scratch is a Visual Programming Language
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.
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
An intro to programming concepts with Scratch Session 7 of 10 sessions Working with sounds and sprite communication.
Alice Learning to program: Part 1 Scene Setup and Starting Animation by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke.
Scratch Workshop Thursday, August 26, 2010.
SCRATCH This Design Notebook belongs to:. 3 What are the different ways you interact with computers? List your answers here: 5.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating.
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.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
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!
The 4 th grade Nutley TALENT cohort shares: SCRATCH.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
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
My Scratch Story Exploring Computer Science Lesson 4-7.
Viking Raid Animation KS2: Use sequence in programs.
Moving Around in Scratch The Basics… -You do want to have Scratch open as you will be creating a program. -Follow the instructions and if you have questions.
I put this into my scratch so that when the green flag was clicked to start the game, and wait an amount of seconds before the QR changes.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
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,
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
1 Project designed and created by M. Shajith Kumar.
Algorithms in Scratch How to plan your code. Algorithms Algorithms provide computers with a set of instructions or a set of rules. They are written BEFORE.
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 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.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
I have used Scratch, to program a guide to internet safety. This is done by using QR codes to make it more interactive and interesting for people playing.
Scratch Part 2 – Character Commands. What does a command do?  Commands in programming allow an object whatever it is to do something. In the case of.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Review for Final June 13, 2016.
Scratch Programming Cards
Create a Halloween Computer Game in Scratch
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.
Games Programming in Scratch
Introduction to Object-Oriented Programming
Getting Started with Scratch
Go to =>
Recap the basics Lesson 1.
Go to =>
Go to =>
Recap the basics Lesson 1.
Creating a Simple Game in Scratch
Presentation transcript:

Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events

Scratch.. So far…  What have you learnt to do in the last few weeks?  Is there anything that you are struggling with and would like a mentor to explain?  What was a challenge you overcame in your last project?  What is something you still want to figure out?  Remember to keep notes each week of what you learned, what you found difficult on your blog and discuss with your mentor.

Lets get serious about Programming  Today we will learn about three important programming concepts  Resetting in Scratch  Parallelism: Making two or more things happen at the same time  Events: Making something happen only when another event happens  After we have all understood these concepts we will get started on making a simple game – need to get through the boring but first important stuff

Resetting in Scratch  Step 1 – Select a single sprite and position the sprite at the left edge of the stage.  Step 2 – Move your mouse to a position on the right edge of the stage and record the x and y coordinates.  Step 3 – Add the following motion command to your sprite and enter the x and y coordinates you recorded  Step 4 – Select a control command to start your program  Step 5 – Click the green flag to start your program  Step 6 – After execution click the red stop button  Step 7 – Click the green flag again – What happens? Why?

 How can we fix this.  Demonstrate use of reset on one of your past project. Note in project notes what you have done and record on blog.  Gone Fishing 

Conversation   Look at Conversation on Handout

Parallelism Parallelism involves getting two or more things happening at the same time  Start with a fresh program for your single sprite  What changes when you split a simple sequence into two programs executing in parallel?

Parallelism involves getting two or more things happening at the same time  Add another sprite to your stage  Create some code to make your second sprite do something  Make sure you execute the code for the second sprite using the same control as the first sprite  You can keep adding sprites and putting code into each one, as long as they have the same control to start their activities the code executes in parallel  What other codes can you add to get sprites working on your command?

Events (Broadcast Tool) Events allow you to create a program that only executes when the pre defined event happens  Start with fresh programs for both of your sprites  Step 1 – Move your sprites to the same side of the screen, one at the top and one on the bottom  Step 2 – Rotate your sprites a little so that if they move they will touch somewhere in the middle of the screen  Step 3 – Add code to each sprite to get them to stop when they meet each other and say hello before moving on together in the same direction

Events - Broadcast  Try out a broadcast command. Add a broadcast command to the code for one of your current sprites – use the message ‘Hurry up’  Step 2 – Add a third sprite and add a receive command with ‘Hurry up’ as the message  Step 3 – Get sprite 3 to say ‘Wait for me’ and chase after the other two sprites

Events - Broadcast  Complete the scenes section on Handout

Slideshow – Six Word Story  Take a look at Slideshow on Handout  Complete 6 word story demonstrating all these concepts

Credit