Changing Backgrounds 3 methods of achieving this.

Slides:



Advertisements
Similar presentations
A guide to using PowerPoint
Advertisements

Formatting Long Documents This resource will help you gain the skills to make a long document look good. Using these skills will save you lots of time.
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Flappy bird guide for Scratch
Harry Potter Scratch Game
SDP Languages and Environments. Types of Languages and Environments There are 4 main types of language that you must be able to describe at Higher level.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
How to make a game on game maker 7. Start With an Idea Before you actually start making your game, you are going to need an idea as to what it is you.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
Using the Unity 98 Cordless Response System Directions : Courtesy of IHC public relations.
Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Making a Flappy Birds Game A INTRODUCTION TO MAKING A FLAPPY BIRDS TYPE GAME.
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.
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
‘How to make perfect English tea’ Ewa Pacykowska.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
How to make a Perfect Cup of Tea Supplies Kettle Ceramic tea-pot Large ceramic mug and spoon Microwave oven.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
By Zoe Cornell. Mug Kettle Tea bag Milk Sugar Pour water into the kettle and switch it on.
Learn about the system life cycle Plan the outline of your project
Unit 3 Music and Sound Evangel College S.2 ICT.
Image #1 Getting Started
1 Use different costumes in Scratch to make an animation effect Synchronise interaction between 2 or more sprites Lesson 3: Learning Objectives.
Educational PowerPoint Game Sample Created by: Kids Computer Lessons For Students in Grade 8 Next.
1 Project designed and created by M. Shajith Kumar.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
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.
Welcome to Scratch By Miss Key. The Main Screen Viewing screen with choice of views.
Programming a Shooter Game Design.
Get Going On ….. Load the word file ‘Glossary’ and complete it. You will have homework today.
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.
1 Understand what Scratch is and what it can be used for Lesson 1: Learning Objectives.
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.
Making a Flappy Birds Game PART 2 – MAKING THE BIRD FLAP AND FALL – AND DEVELOPING THE GAME FURTHER (ADDING ADDITIONAL CHARACTERS, GOODIES, ENEMIES AND.
Introducing Scratch Learning resources for the implementation of the scenario
HOW TO MAKE A GOOD CUP OF TEA SKW 3061 ENGLISH WORKPLACE MISS GURMINDERJEET KAUR MOHAMAD SHAZRYL B. MOHD SHUKOR B01SPS13F
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
Customise & Explain your game
Creating a Tank Game in Scratch
Games Programming in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Getting Started with Scratch
Areas of the SCRATCH 2 Screen
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Stopwatch Cards Stopwatch Cards
Code to Enhance Learning
Image #1 Getting Started
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

Changing Backgrounds 3 methods of achieving this

CHALLENGE 1 – You are going to practice your Background changing programming skills: You will automatically move from the first background to the second background after a pre-set time. On arriving at the second background a button will appear which, when clicked on, will send the user back to the first background. Alternatively, the user could press the space bar and this will send the user back to the first background. The user must be able to move between the backgrounds as many times as required. Program scratch to do this Do this as a new project!! 40 minutes

Add two backgrounds: stage section Add this code to the script area on the stage section When the flag is clicked ‘school image2’ (background 1) is shown. After a pre-set time the background changes to ‘classroom clip art’ (background 2). When this happens a message is broadcasted called “button” which will be received by the button sprite ( see next slide). Explanation

On the Button Sprite: Button sprite Add this code to the script area for the Button sprite When the flag is clicked the button sprite is hidden – it will not be seen on background 1. When the sprite receives the message “button”, which is broadcast by the code on the stage (see the previous slide), the button will appear on background 2 as the two backgrounds interchange. Explanation

On the button sprite Add this code to the script area for the Button sprite There are two options available to return to the first background. When the button sprite is clicked the code in the section ‘When this sprite is clicked’ is operated. This hides the button sprite and switches the background to background 1. The second option is to press the space bar. The code produces exactly the same effect – hides the button sprite and changes the background. Broadcast Screen 1 will be covered in the next slide Explanation

Background scripts We have now returned to the first background, see the previous slide as to how we did this. We want to advance automatically to background 2, as we did when the flag was first clicked. In this second instance there is no click event to do this as we had before and, therefore, no code operating. We need to create a new event. In both the button sprite click event code and the Press Space bar event code we broadcast a message called ‘screen 1’. This is received by the ‘When I receive Screen 1’ event (see image above) which runs the code, starting the process again stage section Add this code to the script area for the stage section Explanation

CHALLENGE 2 - Decompose what you have done Produce a word document start: When the game starts Show the first background Show the second background Can you think of the next bits to decompose? 10 minutes

Example of Decomposition: Making the cup of tea Boil the water Fill the kettle with water Close the lid Switch on Switch off Brew the tea get the teabag Place in pot Pour the hot water into the pot Stir the tea wait Fill the cup

1 Changing Backgrounds – student (2015) by Lucy Stone Sir Jonathon North Community College Shared under a CC-BY 4.0 licenceCC-BY 4.0