Moving Sprites in Scratch

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
Harry Potter Scratch Game
1 An intro to programming concepts with Scratch Session 3 of 10 sessions Repetition and variations.
Programming Concept #2 Iteration. Is just a fancy way of saying that you would like something to repeat more than one time. It is used in any modern programming.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Introduction to.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
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.
Timers Exploring Computer Science Lesson Objectives The students will be able to: Create a timer.
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.
Getting Started With HTML HTML code needs an editor for a programmer to be able to use. We can use Notepad on a PC or TextEdit on a Mac. However, it is.
Exploring Computer Science 2/23/15 2/23 Develop a Scratch story project -Brainstorming 2/24 Develop a Scratch story project –Developing 2/25 Develop a.
Exploring Computer Science 2/16/15
Exploring Computer Science 2/9/15 2/9Moving Scratch 2/10Moving Scratch worksheet 2/11 Scratch Baseball Game 2/12Scratch Alphabet Learning Game 2/13Game.
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.
Section 1 Introduction National 4/5 Scratch Course.
Scratch Dialogues Exploring Computer Science – Lesson 4-3.
Image #1 Getting Started
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
1 Project designed and created by M. Shajith Kumar.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
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.
 Scratch Coordinate & Movements Scratc h Coordinate and Movement.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
ICT/COMPUTING RULES Only use software allowed by the teacher
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Unit 4 Day 1 FOCS – Introduction to Programming. Moving a Sprite Relative vs. Absolute postitioning Gliding.
Event Driven Programs Exploring Computer Science – Lesson 4-5.
FOP: While Loops.
Scratch for Interactivity
Intro CS – Loops & Creating Shapes
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.
Exploring Computer Science – Lesson 4-5
Exploring Computer Science Lesson 4-13
Exploring Computer Science Lesson 4-14
Welcome to Computer Science!
Understanding the Geometric Shape Code
Scratch: iteration / repetition / loops
Exploring Computer Science Lesson 4-10 – Part 1
Unit 2 Getting Started With
Scratch – Simple Programming
Broadcasting Exploring Computer Science Lesson 4-6.
Getting Started with Scratch
Scratch – Simple Programming
EXPLORING COMPUTER SCIENCE
Broadcasting Exploring Computer Science Lesson 4-6.
Recap the basics Lesson 1.
Introduction to scratch animation
Exploring Computer Science Lesson 4-13
Exploring Computer Science – Lesson 4-5
Exploring Computer Science – Lesson 4-3
Exploring Computer Science Lesson 4-8
Code to Enhance Learning
Image #1 Getting Started
Exploring Computer Science Lesson 4-12
Recap the basics Lesson 1.
Game development using Scratch
Exploring Computer Science Lesson 4-14
Exploring Computer Science Lesson 4-13
Creating a Simple Game in Scratch
Lesson One Movement.
Exploring Computer Science Lesson 4-12
Exploring Computer Science Lesson 4-8
Exploring Computer Science Lesson 4-10 – Part 1
Scratch – Simple Programming
Presentation transcript:

Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4

Objectives The students will be able to: Make a sprite move to a specified location. Change the direction a sprite is facing and therefore moving. Reinitialize a Scratch program.

Discussion Briefly describe how you graph something in your Algebra class. Draw me an example graph with 5 points that, when connected, create an image. Tell me the points that you graphed.

On your own… Download the file moving.sb from the Hancock Web Site. Open moving.sb in scratch. Download Homework 4-4 as well. It is a Word document. Complete the homework. Print out your homework when done. MAKE SURE IT IS ON ONE PAGE! Change the font size if it isn’t!

The Stage The “stage” in Scratch is simply a Cartesian coordinate system with point (0,0) in the middle:

Moving Blocks The “move” block moves the sprite forward that many units. The direction depends on which way the sprite is facing.

Moving Blocks The “go to” block instantly moves the sprite to that coordinate on the stage. The direction the sprite is facing will not change.

Moving Blocks The “glide” block moves the sprite to that coordinate on the stage. But unlike the “go to” block, the sprite will slowly or quickly move across the screen to that location depending on the number of seconds you specify. The direction the sprite is facing will not change.

Repeat Blocks The “repeat block” will do a section of code a set number of times. This is called iteration or looping. Iteration is a programming concept common to all programming languages.

Start Blocks The code in a “when green flag clicked” block is executed when the user clicks on the green flag to run the program. Use this block and the “go to” block to move sprites back to their original position.

Rest of Today and First Part of Monday Download baseball.sb from the Hancock website. Use what you’ve learned about moving to get the cat to run the bases (as realistically as possible – bases are run counter clockwise) in baseball.sb. The cat should face the right way as it runs (i.e., not run backwards). Make sure that when you click the green flag, the cat starts at home plate again. Extra Credit: Make the cat change costumes so that it looks like it is running as it circles the bases.

Rubric Do you… Points Possible What Do You Think? Have your sprite realistically moving (i.e., not hopping, jumping, appearing, etc.) from home to first? 15   Have your sprite realistically moving from first to second? Have your sprite realistically moving from second to third? Have your sprite realistically moving from third to home? Have your sprite facing the right way as it runs (i.e., not running backwards)? 20 Have your sprite running forever until the stop sign is hit? 8 Have your sprite reinitializing to home when you click the green flag? 12 Extra Credit Have your sprite changing costumes so that it looks like it is running as it circles the bases? TOTAL: 100