Coding with Scratch Popping balloons

Similar documents
Help the Scratch mascot avoid the space junk and return safely back to Earth! Start a new Scratch project. You can find the online Scratch editor at

Coding with Scratch - First Steps

Workbook. Version 3. Created by G. Mullin and D. Carty

Scratch Lesson Plan. Part One: Structure. Part Two: Movement

Scratch. To do this, you re going to need to have Scratch!

Hello Scratch! by Gabriel Ford, Sadie Ford, and Melissa Ford. Sample Chapter 3. Copyright 2018 Manning Publications

Scratch Jigsaw Method Feelings and Variables

Virtual Dog Program in Scratch. By Phil code-it.co.uk

Maze Game Maker Challenges. The Grid Coordinates

The City School. Learn Create Program

Sketch Out the Design

The Lost Treasures of Giza

Finch Robot: snap level 4

Scratch Programming Lesson One: Create an Scratch Animation

Scratch. Copyright. All rights reserved.

~~~***~~~ A Book For Young Programmers On Scratch. ~~~***~~~

Writing Simple Procedures Drawing a Pentagon Copying a Procedure Commanding PenUp and PenDown Drawing a Broken Line...

Finch Robot: snap levels 1-3

CS108L Computer Science for All Module 7: Algorithms

PENNVET BEHAVIOR APP Pet Owner Instructions

Supporting document Antibiotics monitoring Short database instructions for veterinarians

10 MIND GAMES THAT WILL MAKE YOUR CAT SMARTER

Table of Contents. Page 2 ebook created with Orion PDF Author orion.aidaluu.com. What is Orion Label Maker?

Webkinz Friend Requests

Be Doggone Smart at Work

Life Under Your Feet: Field Research on Box Turtles

3575 Viva Topo.qxd :19 Uhr Seite 1. Selecta

Virtual Genetics Lab (VGL)

Geometry from Scratch

In this project you will use loops to create a racing turtle game and draw a race track.

Pet Notes and Appointment Notes

PYTHON FOR KIDS A Pl ayfu l I ntrodu ctio n to Prog r am m i ng J a s o n R. B r i g g s

Physics Based Ragdoll Animation

Meetings and Events / The Chemistry of LFC and The Beautiful Game

Graphics libraries, PCS Symbols, Animations and Clicker 5

Five simple boosts, huge relationship. BOOST. relationship

RUBBER NINJAS MODDING TUTORIAL

Teach your dog to down

VIRTUAL AGILITY LEAGUE FREQUENTLY ASKED QUESTIONS

Reference Guide Playful Invention Company

Activity 1: Changes in beak size populations in low precipitation

Your Litter-Robot ships fully assembled. Follow these steps to get started and refer to the Instruction Manual for more information.

Activity Sight Smell Touch Hearing Taste

Obedience Personality Test Adapted from The Intelligence of Dogs, pages , Stanley Coren, Free Press, 1994.

2010 Canadian Computing Competition Day 1, Question 1 Barking Dogs!

Do the traits of organisms provide evidence for evolution?

AKC Trick Dog EVALUATOR GUIDE

Notes and INFORMATION

Overview of Online Record Keeping

Homeostasis and Behavior

GARNET STATIC SHOCK BARK COLLAR

Behavior Clerical Assistant Behavior Department Volunteer Training Manual

BY CAROLE RICH WRITING AND REPORTING NEWS: A COACHING METHOD (8TH EIGHTH EDITION) [PAPERBACK] FROM CENGAGE LEARNING

The Leader in Me Chari Distler

Honor Bound: American Prisoners Of War In Southeast Asia, By Stuart I. Rochester, Frederick T. Kiley READ ONLINE

PUPPY MANNERS WEEK 1

Go, Dog. Go! PLAYGUIDE. The Story Dogs, dogs, everywhere! Big ones, little ones, at work and at play. The CATCO

Games! June Seven Mathematical Games. HtRaMTC Paul Zeitz,

USING FARMAX LITE. Upper navigation pane showing objects. Lower navigation pane showing tasks to be performed on objects

Teachers BE SAFE, BE SEEN Teachers section. Contents: Specific teaching points about conspicuity 2

STUDENT MANUAL CANINE SEARCH SPECIALIST TRAINING UNIT 3: ROLE OF THE HELPER

金賞 :The Teddy Bear. 銀賞 :Blue Virus. 銀賞 :Hide and Seek. 銀賞 :The Fountain. 銀賞 :Takuya and the Socks

Clicker Concepts: #1

Welcome to the case study for how I cured my dog s doorbell barking in just 21 days.

Clicker Books: How to Make a Clicker Book Using Clicker Books App v

Bluefang. All-In-One Smart Phone Controlled Super Collar. Instruction Manual. US and International Patents Pending

Volume 02 December 15, Dear Valued Customer,

CONNECTION TO LITERATURE

COLLECTION TOYS AND ACCESSORIES FOR DOGS AND CATS. For PET SPECIALTY STORES

Grade 4 Science Practice Test Answer Key

ENGL-3 MMS Running on Water Quiz Exam not valid for Paper Pencil Test Sessions

Getting Started! Searching for dog of a specific breed:

Introducing and using InterHerd on the farm

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Mechanics 2. Impulse and Momentum MEI, 17/06/05 1/10. Chapter Assessment

You can reset your Hatchimal to Baby any time after hatching by pressing the small reset button on the bottom of your Hatchimal with a paperclip.

Python 3 Turtle graphics. Lecture 24 COMPSCI111/111G SS 2017

Detecting colon cancer using dogs results of a pilot study

GARNET STATIC SHOCK BARK COLLAR

Clicker Training Guide

Sample Course Layout 1

DOGS SEEN PER KM MONITORING OF A DOG POPULATION MANAGEMENT INTERVENTION

Ricky Beats the Birthday Bites SAMPLE. Written and illustrated by Joe Sutliff Developed by the Fairfax County Health Department1

sizing for collars and matching leashes

Sea Turtle Conservation: Public Service Announcement

Owner s Manual DOGS (3647)

Greyhound Manager 2 Instructions

For ADAA users, you will see a page similar to the one shown below:

Texel Sheep Society. Basco Interface Guide. Contents

Cow Exercise 1 Answer Key

Econometric Analysis Dr. Sobel

How to have a well behaved dog

Food and fitness. for a healthy cat

Steffen Mühlhäuser. SCHWARZER KATER Spielregel Rules

THE NATURE OF ANIMAL HEALING : THE DEFINITIVE HOLISTIC MEDICINE GUIDE TO CARING FOR YOUR DOG AND CAT

TOYS AND ACCESSORIES FOR DOGS AND CATS 2018 COLLECTION

BONESS NEWSLETTER NOVEMBER x 7. Our web sites: Phone us: Barton - Flitwick

Want to Be President?

Activity 21. Teachers notes. Learning objective. Resources. Cross-curricular links. Activity. Extension

Minnesota Comprehensive Assessments-Modified

Transcription:

Getting started If you haven t used Scratch before we suggest you first take a look at our project Coding with Scratch First Steps Page 1 Popping Balloons In this game the cat will move around the screen chasing party balloons and when it touches a balloon it goes pop and the balloon disappears! The player controls the cat by moving the computer mouse (or track pad). When you make this game you will: Add a new sprite Use if.. then loops Duplicate sprites and their code Add sounds Control a sprite using your computer mouse or trackpad Make the cat move Start a new Scratch project. From the yellow Control blocks click on the forever block and drag it into the scripts area. From the blue Motion blocks drag a points towards block and drop it into the forever block. From the Events blocks drag a when green flag clicked block and join it to the top of the forever block.

Your code should look like this: Page 2 Try running the code by clicking on the green flag at the top of the stage to start the program. As you move the computer mouse around the stage the cat will keep turning to face it. Now drag a blue move 10 steps block from the Motion blocks and drag it into the jaws of the forever block. The forever block will automatically expand to make room for the new block. Your code will now look like this. Click the Green Flag to start the program running and when you move your computer mouse the cat will follow it around the stage. This type of code is often used to let a player control a sprite when playing a game. For this particular game we want the cat to move more slowly, so click on the number 10 in the move 10 steps block and type in 3. We also want the cat to be smaller, so drag a block from the Looks blocks and drop it between the when green flag clicked block and the forever block. Then change the 100 to 50.

And finally you may have found that when the cat was following the mouse-pointer some of the time he was upside-down. For this game we only want the cat to be facing either left or right so drag a set rotation style block from the Motion group and click on the drop down menu and select leftright Page 3 Then insert the block below the block so that your code now looks like this: That finishes the code for the cat sprite. Add a new sprite the balloon Click on the pixie icon to Choose sprite from library When the library appears browse through it until you find the Balloon1 click on it to add the sprite to the game. and then double

Writing the code for the balloon Next we are going to write the code for the part of the game where, if the cat touches the balloon then the balloon pops and disappears. This is an example of Collision Detection which is a key feature of video games (whether it be a spacecraft hitting a meteorite or Pac Man colliding with a ghost!) but it is also widely used in robotics. Page 4 In our case the collision we need to detect is the cat colliding with the balloon. And the action we want to happen when it does is to make a pop sound and disappear. Scratch has a yellow Control block, the If, Then block, for exactly this situation: So drag out an if then control block and insert a light blue Sensing block into the space. Then click on the drop down menu in the sensing block and select Sprite 1 which is the cat so that the combined blocks look like this: Now insert a play sound pop block from the Sound blocks and a hide block from the Looks blocks into the jaws of the if then block so the code looks like this: The hide block is used to make the balloon disappear.

We want the program to keep checking if the balloon is touching sprite 1 (the cat) so we put a forever loop around our code. Drag the forever block from the Control group and its jaws will automatically open to fit in place. Page 5 Now we add the following three blocks to our code: And that finishes the code for the balloon. Play the game Click the Green Flag to start the game and the as you move your computer mouse (or trackpad) the cat will follow and you can guide him to touch the balloon so that it pops.

Add more balloons We can make the game a lot more fun by adding more balloons. This is quite easy. In the sprites section click on the balloon sprite to select it. Then right click and from the menu that appears select duplicate and a second balloon appears on the stage which has the same code as the original balloon. Page 6 You can repeat this as many times as you like so you have lots of balloons for the cat to chase! New Backdrop Finally we can add a new backdrop to make the game more attractive. Firstly click to Select Backdrop from the library. Then look though the backdrops and choose one you like. Here we have chosen Room 3. Double click it and it will be added to your stage.

So the final game looks like this. Page 7