< Return to Video

Dance Party - Properties

  • 0:02 - 0:07
    Hour of Code | Dance Party: Properties
  • 0:09 - 0:10
    My name is Maria.
  • 0:10 - 0:13
    I'm a junior at the University of Washington
  • 0:13 - 0:15
    and I'm an Amazon future engineer.
  • 0:17 - 0:19
    I love computer science because
  • 0:19 - 0:22
    it incorporates problem-solving and critical thinking.
  • 0:22 - 0:25
    And after putting hours of work into something,
  • 0:25 - 0:29
    you can get something really cool and rewarding out of it.
  • 0:33 - 0:37
    So far, you've had a chance to play with some different types of dancers
  • 0:37 - 0:41
    and you've programmed them to do different types of dance moves.
  • 0:41 - 0:45
    But how do these moves really work?
  • 0:45 - 0:49
    Every dance move is made up of a series of images called frames.
  • 0:49 - 0:53
    Each frame is slightly different from the
    one before it.
  • 0:53 - 0:57
    When your program runs, the computer shows one frame after another.
  • 0:57 - 1:00
    They're shown so fast that it looks like the
    dancer is moving.
  • 1:00 - 1:04
    This is the secret behind all animation.
  • 1:04 - 1:06
    Not only can you change your dancer's moves,
  • 1:06 - 1:09
    you can also change a dancer's properties.
  • 1:09 - 1:14
    Properties describe things like the dancer's
    position on the screen,
  • 1:14 - 1:16
    the dancer's size,
  • 1:16 - 1:18
    and the dancer's color.
  • 1:20 - 1:25
    To change the properties of a dancer, you'll use a "set" block.
  • 1:25 - 1:29
    Let's use a "set" block to make our dancers look smaller.
  • 1:29 - 1:32
    First, drag the set block into your program.
  • 1:32 - 1:36
    Then, select the dancer you'd like to change
  • 1:36 - 1:39
    and type in the size that will appear on screen.
  • 1:51 - 1:53
    Full size is 100.
  • 1:53 - 1:58
    If you choose a lower number, that will make the dancer smaller.
  • 1:58 - 2:01
    The smaller the dancer is, the further away it looks.
  • 2:01 - 2:04
    This is a great way to make backup dancers.
  • 2:10 - 2:16
    Using the set block, you can also change the dancer's dimensions,
  • 2:16 - 2:17
    rotation,
  • 2:18 - 2:19
    position
  • 2:20 - 2:22
    and color.
  • 2:22 - 2:24
    By playing around with these properties
  • 2:24 - 2:28
    you can make all kinds of changes and link them to different parts of the song.
  • 2:29 - 2:35
    Remember, you can only set the properties of a dancer that already exists.
  • 2:35 - 2:39
    Make sure that your set block comes after the "Make a new dancer" block.
  • 2:39 - 2:41
    Feel free to experiment, be creative,
  • 2:41 - 2:42
    and have fun.
Title:
Dance Party - Properties
Description:

more » « less
Video Language:
English
Duration:
02:52

English subtitles

Revisions