scratch coordinate & movements scratc h coordinate and movement

Download Scratch Coordinate & Movements Scratc h Coordinate and Movement

If you can't read please download the document

Upload: gavin-hodges

Post on 18-Jan-2018

232 views

Category:

Documents


0 download

DESCRIPTION

Handout Coordinate Sheet

TRANSCRIPT

Scratch Coordinate & Movements Scratc h Coordinate and Movement JOURNAL: Write an algorithm on how to move the cat down the hall and up the stairs? Handout Coordinate Sheet FIND: X:0, Y:0 found: X:0, Y:0 FIND: X:100, Y:0 found: X:100, Y:0 FIND: X:0, Y:-100 found: X:0, Y:-100 FIND: X:200, Y:100 found: X:200, Y:100 FIND: X:-200, Y:150 found: X:-200, Y:150 FIND: X:100, Y:-180 found: X:100, Y:-180 3 Ways to Move in Scratch Move, Go to and Glide Moving in Scratch Move Moves the sprite forward a set number of steps Go to Sets the sprites location to a specific spot Glide Moves the sprite to a specific spot Move Move () Steps Specify the number of steps Each step is 1 pixel The Move block is a Motion block Negative steps will cause the sprite to move in the reverse direction Move Common Uses Moving a sprite forward in an animation Larger steps will make the sprite move faster Smaller steps will make the sprite move slower Making a sprite follow a mouse The sprite will chase the cursor around the screen Go to Go to X: () Y: () The Go to block sets the sprites X and Y position to the specified amounts. X and Y values are related to the coordinate plane There is no animation in this movement block The Go to block is used when a sprite needs to jump to another spot Simplest way to move a sprite around the screen Go to Common Uses Moving a sprite Sprite will just appear at the indicated location Resetting the sprites location at the beginning of a stage Glide Glide () Secs to X: () Y: () The Glide block moves the sprite steadily to a specified X and Y position The sprite will move in a specified number of seconds Smaller numbers will make the sprite move faster Larger number will make the sprite move slower The Glide block is like the Move block but with more precision Glide Common Uses Fish moving in a tank Falling objects A sprite moving to another sprite Scratch Examples Log into scratch URL: https://scratch.mit.edu/pro jects/ / Click Green flag Use number keys 1, 2, 3 To show the different movements Direct Instruction All students log into Scratch Create Stage Upload baseball.sb Code on following page Baseball Code STAGE: Assignment: apply castle 4 or Brick-Wall-and-Stairs The End