Lesson Eleven Moving Backgrounds.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Create a Simple Game in Scratch
How to make an educational Snakes and Ladders game in Scratch
Harry Potter Scratch Game
Adventures in Animation Harry Potter Game Pranali Choubal Kunal Shaw Barb Ericson Dec 2007.
Helicopter Game Tutorial
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Racing Car Game Using the keys to control a sprite.
SCRATCH This Design Notebook belongs to:. 3 What are the different ways you interact with computers? List your answers here: 5.
Using School fusion A great interactive tool to aid in communication for students, parents and YOU!!! Property of TSVest 2006.
How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
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.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
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.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Create a Halloween Computer Game in Scratch
Games Programming in Scratch
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
Co-ordinates And Geometry Module 6: Investigation 2
-Type text and adjust font/size To add images:
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Customizable Focus Walls
Editing Instructions To add text: -Insert -Text Box
Games Programming in Scratch
Google Summit 2017 Creating Assessments with google forms
Scratch for Interactivity
Loopy Motion Control.
Christina C. Wray & Sarah Norris
Scratch Programming Intro
Stopwatch Cards Stopwatch Cards
Playing with Pictures Module 1 Lesson 3.
EARLY START PROGRAM, SUMMER 2017
Go to =>
An audio and visual tutorial
Moving Sprites in Scratch
Exploring Computer Science Lesson 4-13
Stopwatch Cards Stopwatch Cards
Go to =>
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Stopwatch Cards Stopwatch Cards
Building a Game in Scratch
Stopwatch Cards Stopwatch Cards
What is SCRATCH? Learning Objectives: to explore the Scratch website
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Stopwatch Cards Stopwatch Cards
Lesson Seven Conditionals.
Lesson Twelve Video Sensing.
Lesson One Movement.
Lesson Two Sprites.
Lesson Six Drawing.
Lesson Ten Lists.
Lesson Five Music.
Lesson Nine Variables.
Stopwatch Cards Stopwatch Cards
Presentation transcript:

Lesson Eleven Moving Backgrounds

Skills

Create a new project Title it Lesson 11 Delete the cat!

Bring in the hippo, cloud, and building

Create a blue sky for your backdrop

Start with your building The costumes are actually different buildings, so we can use this to give the illusion of many sprites

Start by setting your building’s x-coordinate to 250 This positions the building to start on the far right corner

To create the moving effect, the building will move across the screen. The number of repeats just needs to be enough to make it move to the far left corner If we change x by -5, it will slowly move to the left across the screen

To get the building to start back on the right side again, add a forever loop

Then add a costume change so that it will seem like different buildings

It should now look like this

Can you make it scroll across? Now try the cloud. Can you make it scroll across?

One starting point is to simply duplicate the code… but what’s the problem?

The cloud doesn’t have a costume change, so we could start by deleting that code Although making new costumes for the cloud would be a great way to improve this game later 

I used -10 to make the clouds move twice as fast Change the value for change x by so that the cloud won’t be synced to the movement of the building I used -10 to make the clouds move twice as fast

Now your cloud is getting stuck for a few seconds on the left. Change to 50 repeats to fix this

Now add code to randomize the cloud’s spot on the y-axis 200 to -200 covers most of the screen

It should now look like this

Program the arrow keys to move our hippo The next costume code will cause his wings to flap when he is moved

Program your hippo’s start and directions Did you notice he was flying behind the buildings? This will fix that.

Create a variable for hits Click here

Add code to track the hits and to cause the hippo to react when it touches a cloud Restarts the score Creates trigger if hippo touches cloud Need a forever loop for it to constantly be checking Increases # of hits Causes hippo to change colors Need a wait or else hippo will rack up multiple hits while still touching cloud Resets the hippo’s color

The hippos says “Watch out for clouds” for 2 seconds, so add a 2 second wait for the cloud and the building

The hippos says “Watch out for clouds” for 2 seconds, so add a 2 second wait for the cloud and the building

Your Turn! Make your own game with a moving background Must have at least two sprites that move in the background Another sprite must need to dodge something Must use a variable BONUS: Can you program it so that the background only moves when you press your arrow keys? Submit to Lesson 11 in the class studio.

12-Lesson Discounted Bundle Bonus Files Final project with Guidelines Rubric Reflection Assignment Student Support Website A support page for each lesson to aid students while working independently https://www.teacherspayteachers.com/Product/Computer-Coding-in-Scratch-10-Lessons-BUNDLE-3870547

Click for individual lessons

Technology and Computer Applications

Literature, Grammar, and Writing

Novels

https://www.teacherspayteachers.com/Store/Miss-Bs-Shop

Terms of Use & Credits By downloading this product you are given permission for classroom and personal use only. You may alter and modify this work for your own use, but please do not share, sell, or post online. Please consider rating this resource. Your ratings earn you TpT credits to apply discounts towards future purchases. Use the link to go to the “My Purchases” tab and rate any products you have downloaded. Note that there is a separate “paid downloads” and “free downloads” tab. https://www.teacherspayteachers.com/My-Purchases Cover art from Tangerine by Edward Bloor. Copyright ©1997 by Edward Bloor. Reprinted by permission of Houghton Mifflin Harcourt Publishing Company. All rights reserved. All other images in products and on cover art (thumbnail images) were found in the public domain. The public domain consists of all the creative works to which no exclusive intellectual property rights apply. Those rights may have expired, been forfeited, expressly waived, or may be inapplicable. Screenshots that are taken from Adobe CC Suite, Microsoft Office Suite, iMovie, and Scratch are in compliance with Fair Use guidelines.