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

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

30 min Scratch July min intro to Scratch A Quick-and-Dirty approach Leaving lots of exploration for the future. (5 hour lesson plan available)
Intro to Programming Algebra-Geometry. Computer Programming? What is programming? The process of writing, testing, and maintaining the source code of.
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.
Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
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.
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
1 Project designed and created by M. Shajith Kumar.
Computer Information Technology. I need you to submit your project electronically to the Hancock website. Before you can submit your project you will.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Web Site Evaluation Exploring Computer Science – Lesson 1-3.
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.
 Scratch Coordinate & Movements Scratc h Coordinate and Movement.
ICT/COMPUTING RULES Only use software allowed by the teacher
CoderDojo Sligo "Above all, be cool" Code and notes by Michael Madden, 2012.
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.
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
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.
Lego Mindstorm Robot Educator Tutorials
Intro CS – Loops & Creating Shapes
What is SCRATCH? Learning Objectives: to explore the Scratch website
© A+ Computer Science -
Spanish Mad libs with Scratch
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
Exploring Computer Science Lesson 4-10 – Part 1
Unit 2 Getting Started With
Introduction to Object-Oriented Programming
Introduction to.
Broadcasting Exploring Computer Science Lesson 4-6.
Getting Started with Scratch
Lego Mindstorm Robot Educator Tutorials
Lego Mindstorm Robot Educator Tutorials
Recap the basics Lesson 1.
And and or…and RANDOMNESS
Moving Sprites in Scratch
Exploring Computer Science Lesson 4-13
Exploring Computer Science – Lesson 4-5
Exploring Computer Science – Lesson 4-3
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
What is SCRATCH? Learning Objectives: to explore the Scratch website
Exploring Computer Science Lesson 4-13
Lesson One Movement.
Exploring Computer Science Lesson 4-12
Exploring Computer Science Lesson 4-8
Animate a Sprite. By M, M and C P6
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

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

Journal Entry Briefly describe how you graph something in your Algebra class. Briefly describe how you graph something in your Algebra class. Draw me an example graph with 5 points. Draw me an example graph with 5 points. Tell me the points that you graphed Tell me the points that you graphed

What do you think… Download the file moving.sb from the Hancock Web Site. Download the file moving.sb from the Hancock Web Site. Open moving.sb in scratch. Open moving.sb in scratch. Click on the “Click here for the Homework” link on the web site. Click on the “Click here for the Homework” link on the web site. Complete the homework. A word version of the questions is also on the website. You might want to have that open. Complete the homework. A word version of the questions is also on the website. You might want to have that open. Make sure you submit when done! Make sure you submit when done!

The Stage The “stage” in Scratch is simply a Cartesian coordinate system with point (0,0) in the middle: 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 “move” block moves the sprite forward that many units. The direction depends on which way the sprite is facing. 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 “go to” block instantly moves the sprite to that coordinate on the stage. The direction the sprite is facing will not change 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 move across the screen to that location. The “glide” block moves the sprite to that coordinate on the stage but unlike the “go to” block the sprite will move across the screen to that location. The direction the sprite is facing will not change. 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. The “repeat block” will do a section of code a set number of times. This is called iteration or looping This is called iteration or looping Iteration is a programming concept common to all programming languages. 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. 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 to move sprites to their original position. Use this to move sprites to their original position.

Rest of Today and Friday Download baseball.sb from the Hancock website. 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) 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. 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. Extra Credit: Make the cat change costumes so that it looks like it is running as it circles the bases.