Lesson One Movement.

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
Harry Potter Scratch Game
1 Publisher Lesson 2 Enhancing Publisher Documents Microsoft Office 2010 Introductory Pasewark & Pasewark.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
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.
Introduction to Scratch!
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
 To begin you first need to sign up to Weebly by going to or alternatively and we will create an account.
Go to your Blog URL: Then click on “Log in” Your students do not need to remember their password, they can select.
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
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.
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.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
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 and choose a new.
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.
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.
Scratch Lesson 1. Creating an account Open the internet browser : Safari or Internet Explorer Type in the URL scratch.mit.edu Using your school computer.
Introducing Scratch Learning resources for the implementation of the scenario
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Create a Halloween Computer Game in Scratch
Weebly Elements, Continued
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
Madlib-Input, Strings, and Lists in Scratch
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.
What is SCRATCH? Learning Objectives: to explore the Scratch website
Adding Assignments and Learning Units to Your TSS Course
Introduction to.
Introduction to Coding
Learn… Create… Program
Learn… Create… Program
Recap the basics Lesson 1.
Introduction to TouchDevelop
Using the sensor Lesson 5.
Go to =>
Scratch for Storytelling
Moving Sprites in Scratch
10 SCRATCH bLOCKS lesson 1 10 Blocks.
Getting Started with Scratch
Game Over Module 4 Lesson 2.
Recap the basics Lesson 1.
Learn… Create… Program
Learn… Create… Program
Using the sensor Lesson 5.
Scratch Lesson 2.
What is SCRATCH? Learning Objectives: to explore the Scratch website
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Lesson Seven Conditionals.
Lesson Twelve Video Sensing.
Lesson Two Sprites.
Lesson Eleven Moving Backgrounds.
Lesson Six Drawing.
Lesson Ten Lists.
Lesson Five Music.
Lesson Nine Variables.
Presentation transcript:

Lesson One Movement

Skills Triggering a program with an event code block Positioning sprites using go to, move, glide, x and y coordinates, turn, and point in direction code blocks Using control codes such as the wait command and the forever loop Using the show and hide code blocks Saving your work and submitting projects to a class folder within Scratch. To set up a class studio so that you can monitor student work, click here

Play Stop Script Editor Code Blocks Stage Controls for sprite (keep in mind that changes made here are not part of your program unless you also add code blocks for them) Get Backdrop Get Sprite

Placement X-axis = horizontal plane Y-axis = vertical plane This cat is at x = 0; y =0 x = 120; y = 90 x = -120; y = 90 x = 0; y = -90 x = 120; y = -90

Try moving your sprite and then check out your x and y coordinates FYI: Simply click and drag on the sprite to move him

FYI: Events are triggers that signal an action in your program Choose and drag in FYI: Events are triggers that signal an action in your program

Snap the code blocks together under your Event block. Choose and drag in Snap the code blocks together under your Event block.

Choose and drag in This program says: When I click the flag, put the sprite at these coordinates and make him visible.

FYI: If you lose your cat, change your coordinates back to x:0 and y:0 Try entering different coordinates. Click the flag and see what happens. FYI: If you lose your cat, change your coordinates back to x:0 and y:0

Move the cat around your stage and check out what happens to the numbers in the motion code box FYI: You can move your cat to where you want it, and the code will automatically adjust for you. However, the information is not stored in your program unless you drag the block into the script editor.

TIP: Always give your characters a “go to” command and a “show” or “hide” command at the start of any program.

Movement Click on this command under What if you change the number to 100? What if you change the number to -100? What happens if you click on this command? What if you change the number to 360? What if you change the number to 90? What does this one do?

Straighten your sprite back out by clicking on the turn commands from your list.

Straighten your sprite back out by clicking on the turn commands from your list. Remember: We can manipulate our sprite from this list but it is not a part of our program unless we drag the code into our script editor.

Your sprite has different rotation styles Use this code block to program your sprite to face a certain direction (adjust the number) Play with this number and try the different rotation options

Choose and drag in

Choose and drag in Change to 100

Choose and drag in another

Choose and drag in Change to 90

Choose and drag in This program now says: When I click the flag, put the sprite at these coordinates and make him visible. Wait 1 second. Move him forward 100 steps. Wait 1 second. Turn him forward 90 degrees.

He should move forward and then fall down like this Click your flag to play the program He should move forward and then fall down like this

What happens when you click your flag to play the program again? We haven’t programmed our cat to start out standing up! So he pivots further and further every time we run the program.

We hide him and then turn him back upright Here is the fix We add wait 1 second We hide him and then turn him back upright

Here is the fix The end of our program now says: Wait 1 second and then hide him. While he is hidden, turn him back upright. (We don’t want to see him pop back up)

Put your code back together and play it Try removing that last Split your code apart Then get rid of this Put your code back together and play it

Now the two turn commands are cancelling each other out because without the wait command, they are happening simultaneously. He no longer falls. FYI: If we didn’t have our “show” code at the beginning of the program, he also would have stayed hidden when we restarted the program.

Delete this code Split your code apart Then get rid of this

Move your cat to the upper right-hand corner

Your coordinates have changed to the new spot. Add to your code

Glide How is this different from the move code?

Try increasing the time on the glide.

Move by changing X or Y coordinates Remove Replace it with this command Add a wait This is a very tiny movement, so try changing each to 100 Add movement on the y-axis

Place a forever loop around the section that causes your sprite to move

Now he will repeat those actions until you end the program

Loops Forever – runs until you hit stop Repeat – repeats the number of times you indicate Repeat Until - stops when a condition is fulfilled If Loops - runs only if a condition is fulfilled These need operator code blocks – we will get to those in a later lesson

Title your project here How to save Title your project here Select File

How to submit 1. Make your project shared 2. You can add directions for your users here 3. Select Add to Studio

4. Choose the correct folder How to submit 4. Choose the correct folder 5. Select okay

How to find all of your projects Click on your name and My Stuff

You can also see everyone else’s work in the class studio

You can also submit to a class studio from your My Stuff page

Your Turn! Write a program that includes: A sprite Movement A forever or a repeat loop Submit to Lesson 1 in the class studio. TIP: Always begin a program by setting up a trigger and the sprite’s starting position

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 & Digital Design Lessons

Literature, Writing, & Grammar Lessons

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.