Add in a new balloon sprite, and a suitable stage backdrop.

Similar documents
Lost in Space. Introduction. Step 1: Animating a spaceship. Activity Checklist. You are going to learn how to program your own animation!

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

Making a maze with Scratch

Make a game in which you play the notes of a song as they scroll down the stage.

Teacher Cheat Sheet - Game Coding Challenges

Teaching Kids to Program. Lesson Plan: Catch the Ball

Lineup. Introduction. What you will need. Import your costumes. What you will make. What you will learn. Hardware. Software

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional

ICS 61 Game Systems and Design Introduction to Scratch

Animate a Name Cards

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING

In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite.

Introduction to Scratch Programming v1.4 (Second Ed) Lesson 6 Calculator

You can delete the default blank background by clicking on its Delete button.

Scratch Lesson 2: Movies Made From Scratch Lesson Framework

S3 Scratch Programming

Mailman Max. The postcode is a great way to work out the next sorting office a letter should go to, so you ll use that.

SCRATCH MODULE 3: NUMBER CONVERSIONS

All Blocks of Scratch

Computer Science Concepts in Scratch

Computer Science Concepts in Scratch

Crossley Fields - Computing Vocabulary

Creating Breakout - Part 2

ONE HOUR ANIMATION. Will you be a Scratcher upon completion of this session? Definitely. Learn how to write a basic script to animate a sprite.

Key Stage 2 Scratch, Python and Kodu (Beginners)

Digital Technologies in focus:

Lesson 3 Creating and Using Graphics

Scratch Lesson 11: Mini Mario Game Part II - Sprites

In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Athletics Swimming Gymnastics

VISUAL PROGRAMMING BY SCRATCH

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

The Environment. Scratch Programming. The Environment. The Environment. The Environment. The Environment. Lesson 1: Introduction THE STAGE

Final Revision. 1)Put ( ) or ( ):

SCRATCH PROGRAMMING. Lesson 7: Create a Scratch Cartoon Animation

TTS Scratch Controller. Teacher Guide. 1 TTS Scratch Controller - Teacher Guide. Product Code: EL00530

You are going to learn how to make a timer, so that you can use it to challenge your friends!

The Beauty and Joy of Computing 1 Lab Exercise 1: Introduction to Scratch/BYOB - Animations and Communication

Scratch. Creative Computing

Scratch Programming for Primary School Teachers Quiz Game

1st ESO: Technology, Programming and Robotics. Unit 5: Programming. Autor: Guillermo Gómez

M O T I O N A N D D R A W I N G

Animate a Character Cards

Cartoon Animation Tutorial

You will be writing code in the Python programming language, which you may have learnt in the Python module.

Pong in Unity a basic Intro

Anjuli Kannan. Google Earth Driving Simulators (3:00-7:00)

Filter and PivotTables in Excel

You are going to code your micro:bit to read the future! Simply ask the micro:bit a quesition, and press a button to find out the answer!

Flash offers a way to simplify your work, using symbols. A symbol can be

CPS111 Victory Thru Scratch Lab

How to use the Assets panel

We created a few different effects and animations using this technique as applied to clones.

Windows Movie Maker lets you edit videos from video and photo files. It is free from Microsoft.

Using the Digital Blue Camera to Make a Simple Movie Duncan Whitehurst - ICT Advisory Teacher Pembrokeshire County Council

INVIGILATED BY MARKED BY MARKS TALLIED BY

Studuino Programming Environment Manual

You might think of Windows XP as a set of cool accessories, such as

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy

Quick Reference Tables

Clickteam Fusion 2.5 Creating a Debug System - Guide

Tutorial. Creating activities in Expert mode

SCRATCH. Introduction to creative computing with Scratch 2.0

1. Defining Procedures and Reusing Blocks

Inserting or deleting a worksheet

Textures and UV Mapping in Blender

IT82: Multimedia Macromedia Director Practical 1

USER GUIDE: EDITOR. Drag & drop system: Content Manager Style Editor Add Elements Undo/Redo Save...

EDGE, MICROSOFT S BROWSER

Instructions for the 3 Spinner & More Programs

What are different approaches of Computer Art? How can computation create art? 9/17/12. Human uses computer to modify digital images

Inspire Ten Minute Task #1

Make a Holiday PhotoShow

Printing Tips Revised: 1/5/18

Guide - The limitations in screen layout using the Item Placement Tool

In this project, you ll learn how to use CSS to create an animated sunrise.

Quick Guide. Choose It Maker 2. Overview/Introduction. ChooseIt!Maker2 is a motivating program at first because of the visual and musical

Prezi PREZI ONLINE ACCOUNT START FROM A TEMPLATE

Guide to using QGIS. QGIS is a free and open source Geographical Information System programme which can be downloaded at

In this lesson, you ll learn how to:

Not For Sale. Offline Scratch Development. Appendix B. Scratch 1.4

OPUS Drag and Drop Word Searches

Fruit Snake SECTION 1

Hello App Inventor! Android programming for kids and the rest of us. Chapter 2. by Paula Beer and Carl Simmons. Copyright 2015 Manning Publications

With the Photo-face project learners can incorporate digital media digital photos, and then transform these images in creative and surprising ways.

Let s Make a Front Panel using FrontCAD

2.0: The Storyboard Editor

Quiz. Introduction: Python. In this project, you ll make a quiz game to challenge your friends. Activity Checklist.

Getting Started with Crazy Talk 6

SCRATCH PROGRAMMING. Lesson 8: Stories to Animations Part I

PUSH ipad Graphics package

micro:bit game controller with Scratch

ORGANIZING YOUR ARTWORK WITH LAYERS

Numbers Basics Website:

Websites. Version 1.7

TechRepublic : A ZDNet Tech Community

Review of Computer Science and Scratch Concepts

Networks Florida Social Studies WorkText K-5 Digital Training Guide

Scratch. Construct of Your Imagination

Game Design Unity Workshop

Transcription:

Balloons Introduction You are going to make a balloon-popping game! Step 1: Animating a balloon Activity Checklist Start a new Scratch project, and delete the cat sprite so that your project is empty. You can find the online Scratch editor at jumpto.cc/scratchnew. Add in a new balloon sprite, and a suitable stage backdrop. 1

Add this code to your balloon, so that it bounces around the screen: when clicked go to x: 0 y: 0 point in direction 45 forever move 1 steps if on edge, bounce Test out your balloon. Does it move too slowly? Change the numbers in your code if you want to speed it up a bit. Did you also notice that your balloon flips as it moves around the screen? 2

Balloons don t move like this! To fix this, click on the balloon sprite icon, and then click the blue i information icon. In the rotation style section, click the dot to stop the balloon rotating. Test your program again to see if the problem is fixed. Step 2: Random balloons Activity Checklist With the code you have now, your balloon will always start in the same place and move in the same path. Click the flag a few times to start your program, and you ll see it s the same every time. Instead of using the same x and y position each time, you can let 3

Scratch choose a random number instead. Change your balloon s code, so that it looks like this: when clicked go to x: pick random -150 to 150 y: pick random -150 to 150 point in direction 45 forever move 1 steps if on edge, bounce If you click the green flag a few times, you should notice that your balloon starts in a different place each time. You could even use a random number to choose a random balloon colour each time: change colour effect by pick random 0 to 200 What happens if this code is put at the start of your program? Does anything different happen if you put this code inside the forever loop? Which do you prefer? 4

Challenge: More randomness Can you make your balloon start by pointing in a random direction (between -90 and 180)? Step 3: Popping balloons Lets allow the player to pop the balloons! Activity Checklist Click on your balloon sprite, and then click the Costumes tab. You can delete all of the other costumes, just leaving 1 balloon costume. Add a new costume, by clicking Paint new costume and create a new costume called burst. Make sure that your balloon switches to the right costume when the game starts. Your code should now look like this: 5

when clicked switch costume to balloon1-a point in direction pick random -90 to 180 go to x: pick random -150 to 150 y: pick random -150 to 150 change color effect by pick random 0 to 200 forever move 1 steps if on edge, bounce To allow the player to burst a balloon, add this code: when this sprite clicke d switch costume to burst play sound pop Test out your project. Can you pop the balloon? Does it work as you expected? You ll need to improve this code, so that when the balloon is clicked, it shows the burst costume for a short time, and is then hidden. You can make all of this happen by changing your balloon when sprite clicked code to this: when this sprite clicke d switch costume to burst play sound pop wait 0.3 secs hide Now that you re deleting the balloon when it s clicked, you ll also need to 6

add a show block to the start of the when flag clicked code. Try popping a balloon again, to check that it works properly. If you find it difficult to pop the balloon without dragging it around, you can play the game in fullscreen mode by clicking this button: Step 4: Adding a score Let s make things more interesting by keeping score. Activity Checklist To keep the player s score, you need a place to put it. A variable is a place to store data that can change, like a score. To create a new variable, click on the Scripts tab, select Data and then click Make a Variable. 7

Type score as the name of the variable, make sure that it is available for all sprites, and click OK to create it. You ll then see lots of code blocks that can be used with your score variable. You ll also see the score in the top-left of the stage. When a new game is started (by clicking the flag), you want to set the player s score to 0. Add this code to the top of the balloon s when flag clicked code: 8

set score to 0 Whenever a balloon is popped, you need to add 1 to the score: when this sprite clicke d switch costume to burst play sound pop wait 0.3 secs change score by 1 hide Run your program again and click the balloon. Does your score change? Step 5: Lots of balloons Popping 1 balloon isn t much of a game, so let s add lots more! One simple way to get lots of balloons is just to right-click on the balloon sprite and click duplicate. This is OK if you only want a few, but what if you need 20? or 100? Are you really going to click duplicate that many times? Activity Checklist A much better way of getting lots of balloons is to clone the balloon sprite. Drag your balloon when flag clicked code (except the score block) off of the event (don t delete it), and instead add code to create 20 balloon clones. You can now attach the code you ve just removed to the when I start as a clone event. You should also replace the hide block in the balloonclicking script with a delete this clone block. 9

Your balloon code should now look like this: Test your project! Now when the flag is clicked, your main balloon sprite will hide and then clone itself 20 times. When each of these 20 clones is started, they will each bounce around the screen randomly, just as they did before. See if you can pop the 20 balloons! Step 6: Adding a timer You can make your game more interesting, by only giving your player 10 seconds to pop as many balloons as possible. Activity Checklist You can use another variable to store the remaining time left. Click on the stage, and create a new variable called time : This is how the timer should work: 10

The timer should start at 10 seconds; The timer should count down every second; The game should stop when the timer gets to 0. Here s the code to do this, which you can add to your stage: when clicked set time to 10 repeat until time = 0 wait 1 secs change time by -1 stop all To add the repeat until time = 0 code, first you ll need to drag a green = block, onto your repeat until block: You can then drag your time variable onto the = block: Drag your time variable display to the right side of the stage. You can also right-click on the variable display and choose large readout to change how the time is displayed. 11

Test your game. How many points can you score? If your game is too easy, you can: Give the player less time; Have more balloons; Make the balloons move faster; Make the balloons smaller. Test your game a few times until you re happy that it s the right level of difficulty. Challenge: More objects Can you add in other objects to your game? You can add good objects, like donuts, that give you lots of points, or bad objects, like bats, that take points away. 12

You ll need to think about the objects you re adding. Think about: How many will there be? How big is it? How does it move? How many points will you score (or lose) for clicking it? Will it move faster or slower than the balloons? What will it look/sound like when it s been clicked? If you need help adding another object, you can reuse the steps above! 13