PROCEDURES IN SCRATCH Message Broadcasting and Receiving.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
How to make an educational Snakes and Ladders game in Scratch
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Racing Car Game Using the keys to control a sprite.
KS1 Scratch 1.4 Pizza Pickle - Debugging Programming.
Lesson 1: Setting up a 2d game 9.5 Lesson Slides.
Extending the Pong Example Barb Ericson Georgia Tech June 2011.
Meet Me on Mars Lesson 7 Variables and Messages. Events and Variables 1. Click the _________ button 2. When ________ clicked, set ______ to ____ 3. Now,
Introduction to.
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.
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 Use different costumes in Scratch to make an animation effect Synchronise interaction between 2 or more sprites Lesson 3: Learning Objectives.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Variables and Random Numbers Computer App Session 4.
Unit 1 Introduction to Evangel College S.2 ICT.
 Make sure you are subscribed to announcements on Moodle.  Activity 5 will be due before the beginning of lab next week.  Check Moodle for complete.
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.
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.
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 of the stage and.
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.
Games Design. Lesson Aims To gain an understanding of how Scratch works so that we can use it to create our game.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
CoderDojo Sligo "Above all, be cool" Code and notes by Michael Madden, 2012.
Computer Programming Modeling a Passive Solar Home.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
How to Log on In school Type “frog” or “VLE” directly into the address bar Use your usual school log in details At home Type
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Drawing in Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Introducing Scratch Learning resources for the implementation of the scenario
LEARNING SCRATCH: PRESENTATION 4 PRESENTATION 1: GETTING STARTED 1 Broadcast Messages Today, we'll learn how to get our sprites to act together, and build.
Using MIT Scratch for Programming and Control Programming 9.
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Customise & Explain your game
Broadcasting (Adding a new level)
August 31 Intro to CS.
Madlib-Input, Strings, and Lists in Scratch
What is SCRATCH? Learning Objectives: to explore the Scratch website
Spanish Mad libs with Scratch
Welcome to Computer Science!
Interacting Sprites Module 3: Investigation 4
Computing Year 7 - Unit 2 Programming Basics Scratch Basics.
Scratch Programming Intro
Intro Page – Medeco Key System Design Studio
Getting Started with Scratch
KS1 Scratch 1.4 Pizza Pickle - Debugging
Motion and Looks.
Areas of the SCRATCH 2 Screen
Welcome to SCRATCH.
Motion in Scratch 1.
Mod 2 Lesson 2 Repeating Debugging
Getting Started with Scratch
Code to Enhance Learning
Game Over Module 4 Lesson 2.
Editing Instructions. Editing Instructions Exporting Instructions.
Getting Started with Scratch
What is SCRATCH? Learning Objectives: to explore the Scratch website
CSC 221: Introduction to Programming Fall 2018
Lesson Nine Variables.
Problem Solving and Computer Programming
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Scratch 7B IT 1.
Animate a Sprite. By M, M and C P6
Welcome to Flex website instructions
Presentation transcript:

PROCEDURES IN SCRATCH Message Broadcasting and Receiving

Agenda Holiday chat Debug it assignment Message broadcasting and receiving

Message Broadcasting and Receiving

Broadcasting Any sprite can broadcast a message using the broadcast or broadcast and wait blocks This triggers all scripts in all sprites (including the broadcaster) that begin with a matching when I receive block All sprites hear the broadcast but they only act on it if they have a corresponding when I receive block

Create the following scripts…. Pencil Sprite: Stage:

Let’s try a more complex example.. Go on to Moodle and go to 9. Procedures - Message Broadcasting and Receiving Download Flowers_nocode.sb2 and upload it to Scratch (do not try to open it) Once you’ve got it open, wait for instructions

Create the following code for each sprite: Note: Change this value for each sprite. Remember, you can drag and drop the script into each sprite to duplicate it.

Now it’s your turn to experiment: You now have a base program to manipulate. Use the remaining class time to experiment and make your own designs/programs that use the broadcast and receive blocks. Note: If you have not handed in your Debug it assignment, use the time remaining to work on it.