What s That? Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Similar documents
Fruit Machine. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

How to Build a Simple Pac-Man Game

Use fireworks and Bonfire night as a stimulus for programming

The Richard Pate School. Draft Year 4 Scheme of Work for Scratch

REFERENCE GUIDE 1. INTRODUCTION

Make your own Temple Run game

Scratch Primary Lesson 4

MAKE YOUR FIRST A-MAZE-ING GAME IN GAME MAKER 7

So you want to create an a Friend action

Creating trouble-free numbering in Microsoft Word

Statgraphics Getting started

MAKE AN A-MAZE-ING GAME

Using Excel as a Management Reporting Tool with your Minotaur Data. Exercise 1 Customer Item Profitability Reporting Tool for Management

Setting up a basic database in Access 2003

Creating a Gradebook in Excel

If you know exactly how you want your business forms to look and don t mind

Chapter 2. Making Shapes

1.0-Scratch Interface 1.1. Valuable Information

Create A Collage Of Warped Photos

Android Programming Family Fun Day using AppInventor

COMMONWEALTH OF PA OFFICE OF ADMINISTRATION. Human Resource Development Division. SAP LSO-AE Desk Guide 15 T H J A N U A R Y,

HELP CONTENTS INTRODUCTION...

HOW TO ORGANIZE PICTURES

Getting Started with WebSite Tonight

Skyward Creating and Administering Online Assignments

Using Excel As A Database

Use Blackboard 9.1 Auto-Submit and Provide a more time accommodation

Hello. What s inside? Ready to build a website?

Google Sites. How to create a site using Google Sites

3. Add an Event: Alarm Alarm 0 a. Add an Action: Set Variable i. Applies to: Self ii. Variable: time_left iii. Value: +1 iv. Check the Relative box

Using Mail Merge in Microsoft Word 2003

LESSON 7: IMPORTING AND VECTORIZING A BITMAP IMAGE

ProExtra eclaiming User Guide

Chapter 3 ADDRESS BOOK, CONTACTS, AND DISTRIBUTION LISTS

SMART NOTEBOOK 10. Instructional Technology Enhancing ACHievement

Lottery Looper. User Manual

Windows 7 for beginners

SMARTstuff. The first rule for using an interactive whiteboard is very simple and of the utmost importance: Have faith in yourself you can do this!

You can finish the course early as early as you can or want to.

Customizing your Blackboard Course

Turtle Power. Introduction: Python. In this project, you ll learn how to use a turtle to draw awesome shapes and patterns. Activity Checklist

Usability Test Results

Chapter 28: Expanding Web Studio

Synthesys Call Recycling

App Inventor Tutorial 4 Cat & Mouse Game

Sage Accountants Business Cloud EasyEditor Quick Start Guide

After you complete the survey, compare what you saw on the survey to the actual questions listed below:

Computer Science Education Week Teacher/Volunteer Guide

Manual English KOI Desktop App 2.0.x

CORSAIR GAMING KEYBOARD SOFTWARE USER MANUAL

Building Qualtrics Surveys for EFS & ALC Course Evaluations: Step by Step Instructions

Creating Forms With Adobe LiveCycle Designer 8.2

THE WINNING ROULETTE SYSTEM.

Excel macros made easy

Flash Objects. Dynamic Content 1

Advanced Programming with LEGO NXT MindStorms

Bank Reconciliation: Improvements for the Shelby v5 Spring 2006 Release

Computer Science Concepts in Scratch

Munis Payroll Entry Instructions

THE WISDOM OF 14 ACCOUNTING TEXTBOOKS.

If you know exactly how you want your business forms to look and don t mind detail

It was late at night and Smartie the Penguin was WIDE awake He was supposed to be fast asleep but tomorrow was his birthday. He was so excited; all

ADOBE CONNECT 8 USER GUIDE. Colorado Department of Labor & Employment

Managing Agile Projects in TestTrack GUIDE

Exporting an image from Sibelius to Microsoft Word

Parcelhub - Linnworks Custom Courier Integration Script

Social Media Monitoring at Zero Costs Step-by-Step Guide

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

Reporting for results

<click> garbage in. <click>garbage out

Quick Guide on How to Clean up your Mailbox

Introduction to Microsoft Outlook Web Access Faculty/Staff Tutorial

You can learn more about Stick around by visiting stickaround.info and by finding Stick Around on social media.

If this PDF has opened in Full Screen mode, you can quit by pressing Alt and F4, or press escape to view in normal mode. Click here to start.

CMS Training Session 1

The Social Accelerator Setup Guide

Index. Page 1. Index

Years after US Student to Teacher Ratio

Communicate: In Print

PERSONAL LEARNING PLAN- STUDENT GUIDE

Drawing a histogram using Excel

Hello. What s inside? Ready to build a website?

Pivot Tables & Pivot Charts

Web UTAS. Common problems and solutions. Common problems with Java settings. Ensuring that you have the correct Java settings in place

RingCentral for Desktop. UK User Guide

Microsoft PowerPoint Exercises 4

Club Accounts Question 6.

Graphing Parabolas With Microsoft Excel

Level 15: Creating a Puzzle

Easy Casino Profits. Congratulations!!

Hello Purr. What You ll Learn

Offline Files & Sync Center

Digital Marketing EasyEditor Guide Dynamic

My ø Business User guide

TUTORIAL: BOARDMAKER STUDIO START-UP

Web Intelligence User Guide

How To Connect Your Transactions To Quickbooks Online From Your Bank Or Credit Card Account On A Pc Or Mac Computer Or Ipa Device

Welcome, today we will be making this cute little fish come alive. Put the UltimaFish.bmp texture into your Morrowind/Data Files/Textures directory.

Transcription:

Introduction: A random object is shown on the blackboard, all distorted. You have to guess what it is by clicking on the right picture below. The quicker you guess, the higher your score! Activity Checklist Follow these INSTRUCTIONS one by one Test Your Project Click on the green flag to TEST your code Save Your Project Click on this to SAVE your work 1

STEP 1: Make different things appear on the blackboard We want a few different pictures to show up on the blackboard. Activity Checklist 1. Start a new Scratch project and delete the cat sprite.. 2. Click Stage and then the Backgrounds tab. Import the indoors/chalkboard background.. Import a new sprite and give it any costume you like. You can picked some from the things folder. 4. Position the new sprite in the middle of the blackboard. Make it bigger or smaller if you need to. 5. Click the Costumes tab and import four more things. They can be anything you want, yay! Let s now make a random picture appear. 6. Create this script: Test Your Project Click the green flag. Does the sprite show a different costume? Click on it a few more times. Do you get different costumes every time? Sometimes you ll get the same costume twice in a row, but that s OK. You ll also notice that you can see the sprite flicker as it changes costume. We ll fix that in the next step. 2

STEP 2: Make the pictures distorted Activity Checklist Let s now make a picture distorted when it appears, and become clearer over a few seconds. We ll use a score variable to control how much distortion there is. If the score is high, there will be lots of distortion. As the score goes down, there will be less and less distortion. The score also acts as a timer, like on the Timer Scratch Card. 1. On the Variables palette, create a variable called Score. 2 Change the script to just make to look like this: You should add the hide block at the top and the set [score] to 110 block, and everything below it. Test Your Project Click the green flag. Does a random and distorted picture appear? Does the distortion get less in stages? Does the score go down as the picture becomes less distorted? Do you get an undistorted image when the score reaches zero? Do you still get a different picture every time you click the green button?

Things to try Try changing the starting score and how much it changes each time around the loop. How does this change how the picture looks? Does it make it harder or easier to spot what the picture is? Try some different graphic effects from the pull-down lists. How do they change the difficulty? STEP : Allow the player to guess the picture Activity Checklist So far we ve got our random picture appearing slowly, and a score which decreases over time, but how do you win the game? We ll add some sprites at the bottom of the screen for the player to click on. If they click on the right one, they win the game. If they click on the wrong one, that sprite disappears and the game carries on. First, we need to know what the right answer is. 1. Create a new variable called answer. Make sure it s for all sprites. 2. Change the script you ve written to record the right answer. Add the set [answer] to costume # blocks just after the first repeat loop: Now we need to add the sprites that the player can click on.. Duplicate the main sprite and drag the duplicate to the bottom left corner of the stage. 4

4. Rename this sprite to answer1. (This makes it easier to talk about.) 5. Delete answer1 s script and all its costumes but its first one. 6. Do these last three steps again, but put the answer2 sprite next to answer1 and delete all but its second costume. 7. Do it three more times for answer, answer4, and answer5. You should end up with a row of five answer sprites along the bottom of the Stage, each showing a different costume the the main sprite can be. None of the answer sprites should have any scripts. Now we want to have each sprite respond to being clicked and do something depending on whether its the right answer or not. 8. Add this script to the answer1 sprite: 9. Drag this script into each of the other answer sprites. In each sprite, change the 1 to 2,, and so on. 10. We now have to add something that responds to the won message. Go back to sprite1, the one on the blackboard. Add this extra script: 5

Test Your Project Click the green flag. When you test the game, you can use the answer monitor on the stage to tell what the right answer is. That s good for testing. What happens when you click on the right answer? What happens to the score when you click on the right answer? What happens when you click on the wrong answer? What happens to the wrong answer when you start a new game? The test shows up two problems. First, wrong guesses don t reappear when the next game starts. Second, the score doesn t stop going down when we get the right answer. 11. To fix the first problem, add this script to each of the five answer sprites: To fix the second problem, we need to stop the question sprite s repeat until loop when the player clicks on the right answer. We ll use a new variable to do that. We ll set it to zero when the game starts and set it to one when the game is won. We ll make the repeat until loop stop when either the score reaches zero OR the game-winning flag is set to one. 12. Create a new variable called won? 1. Change the scripts so they look like this: 6

Well done you ve finished the basic game! There are more things you can do to your game though. Have a go at these challenges! Challenge 1: Make the game harder or easier Change how difficult the game is. Try changing how fast the picture is revealed and how fast the score goes down. Try changing the distortions on the picture. Try changing the pictures being guessed, to make them either more similar or more different. If you do this, don t forget to change the answer sprite s costume. Challenge 2: Distort the picture differently in each game At the moment, each play of the game uses the same distortion. In Step 2, you might have tried some different distortions that work at least as well as the colour + pixelation we used. Find some different distortions that work well. Change the game so that each game uses a different distortion in the repeat until loop. Hint: Try creating a new variable, called distortion to use. Set it to a random value at the start of the game. Use if blocks in the body of the repeat until loop to apply the correct distortion for this game. 7

Challenge : Make a game have a few rounds At the moment, each game is independent. Change it so that the game proceeds in several rounds. For instance, have one game take three rounds, so the player has to guess three pictures and can score up to 00 points. Hint: You ll need an extra variable to store the grand total across all the rounds. You ll also need a loop to go through the different rounds. Hint: You ll also have to make the wrong guesses reappear at the start of each round. Perhaps you could use a broadcast message to do that? Challenge 4: Make later rounds more difficult As you go through different rounds, make the game harder each time. Does each round need to score the same? Should you get more points for guessing quickly in the later, more difficult rounds? Hint: How will you know which round you re in? How can you use that to change the difficulty and the score? Challenge 5: Keep playing until the player gets it wrong Instead of using a fixed number of rounds, keep playing the game until the player doesn t get a picture right. This probably only works if the game gets harder in later rounds. 8

Challenge 6: Make the game harder or easier depending on how well the player does Rather than always making the game harder, make the game adjust the difficulty depending on the skill of the player. If they get the right picture quickly, make the next game a bit harder. If they don t get the right picture, or only get it late, make the next game a bit easier. This idea only really works if you don t add up someone s score over several rounds. Challenge 7: Keep track of the highest score Keep track of the highest score. If someone manages to beat it, ask for their name and update the highest score. Make sure the highest score, and the name of the person who scored it, are displayed. 9

Challenge 8: Make wrong guesses expensive At the moment, there s no penalty to just clicking on all the answer sprites as quickly as you can. Change the game so that the score goes down a bit every time you make an incorrect guess. Does this make the game better? Well done you ve finished, now you can enjoy the game! Don t forget you can share your game with all your friends and family by clicking on Share on the menu bar! 2012 Code Club. This work is licensed under a Creative Commons Attribution-Non Commercial-NoDerivs.0 Unported License. 10