1. Trang chủ
  2. » Giáo án - Bài giảng

Scratch coordinate movement

23 208 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Scratch

  • PowerPoint Presentation

  • Handout Coordinate Sheet

  • Slide 4

  • Slide 5

  • Slide 6

  • Slide 7

  • Slide 8

  • Slide 9

  • Slide 10

  • 3 Ways to Move in Scratch

  • Moving in Scratch

  • Move

  • Move – Common Uses

  • Go to

  • Go to – Common Uses

  • Glide

  • Glide – Common Uses

  • Scratch Examples

  • Direct Instruction

  • Baseball Code

  • STAGE: Assignment: apply castle 4 or Brick-Wall-and-Stairs

  • The End

Nội dung

Scratch Coordinate & Movements Scrat Coordinate ch 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 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 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 sprite’s 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 /projects/17690143 / Click Green flag Use number keys 1, 2, 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 or Brick-Wall-andStairs The End ... moving to another sprite Scratch Examples Log into scratch URL: https:/ /scratch. mit.edu /projects/17690143 / Click Green flag Use number keys 1, 2, To show the different movements Direct Instruction... 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... X:-200, Y:150 FIND: X:100, Y:-180 found: X:100, Y:-180 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

Ngày đăng: 07/07/2017, 09:40

TỪ KHÓA LIÊN QUAN