Scratch Coordinate & Movements Scrat ch Coordinate and Movement... Handout Coordinate Sheet... Move – Common Uses Moving a sprite forward in an animation Larger steps will make the
Trang 1Scratch
Coordinate & Movements
Scrat ch
Coordinate and
Movement
Trang 2JOURNAL: Write an algorithm on how to move the cat down the hall and up the stairs?
Trang 3Handout Coordinate Sheet
Trang 4FIND: X:0, Y:0
Trang 5X:0, Y:0
FIND:
X:100, Y:0
Trang 6X:100, Y:0
FIND:
X:0, Y:-100
Trang 7X:0, Y:-100
FIND:
X:200, Y:100
Trang 8X:200, Y:100
FIND:
X:-200, Y:150
Trang 9X:-200, Y:150
FIND:
X:100, Y:-180
Trang 10X:100, Y:-180
Trang 13to move in the reverse direction
Trang 14Move – 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
Trang 15Go to
Go to X: () Y: ()
The “Go to” block sets the sprite’s X and Y
position to the specified amounts.
X and Y values are related to the coordinate plane
The “Go to” block is used when a sprite needs
to jump to another spot
Simplest way to move a sprite around the
screen
Trang 16Go to – Common Uses
indicated location
the beginning of a stage
Trang 17 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
Trang 18Glide – Common Uses
Fish moving in a tank
Falling objects
A sprite moving to another sprite
Trang 19Scratch Examples
Log into scratch
URL:
https://scratch.mit.edu /projects/17690143 /
Click Green flag Use number keys
1, 2, 3
To show the different movements
Trang 20Direct Instruction
All students log into Scratch
Trang 21Baseball Code
Trang 22Assignment: apply castle 4 or
Brick-Wall-and-Stairs
Trang 23The End