1 00:00:01,520 --> 00:00:07,300 Hour of Code | Dance Party: Properties 2 00:00:08,700 --> 00:00:10,300 My name is Maria. 3 00:00:10,300 --> 00:00:12,760 I'm a junior at the University of Washington 4 00:00:12,760 --> 00:00:15,020 and I'm an Amazon future engineer. 5 00:00:16,760 --> 00:00:18,580 I love computer science because 6 00:00:18,580 --> 00:00:21,820 it incorporates problem-solving and critical thinking. 7 00:00:21,920 --> 00:00:24,580 And after putting hours of work into something, 8 00:00:24,580 --> 00:00:28,540 you can get something really cool and rewarding out of it. 9 00:00:32,800 --> 00:00:37,220 So far, you've had a chance to play with some different types of dancers 10 00:00:37,220 --> 00:00:41,440 and you've programmed them to do different types of dance moves. 11 00:00:41,440 --> 00:00:44,620 But how do these moves really work? 12 00:00:44,620 --> 00:00:49,010 Every dance move is made up of a series of images called frames. 13 00:00:49,010 --> 00:00:52,660 Each frame is slightly different from the one before it. 14 00:00:52,660 --> 00:00:56,530 When your program runs, the computer shows one frame after another. 15 00:00:56,530 --> 00:01:00,270 They're shown so fast that it looks like the dancer is moving. 16 00:01:00,270 --> 00:01:03,870 This is the secret behind all animation. 17 00:01:03,870 --> 00:01:06,280 Not only can you change your dancer's moves, 18 00:01:06,280 --> 00:01:09,340 you can also change a dancer's properties. 19 00:01:09,340 --> 00:01:13,780 Properties describe things like the dancer's position on the screen, 20 00:01:13,780 --> 00:01:15,960 the dancer's size, 21 00:01:15,960 --> 00:01:18,300 and the dancer's color. 22 00:01:20,420 --> 00:01:24,700 To change the properties of a dancer, you'll use a "set" block. 23 00:01:24,700 --> 00:01:29,040 Let's use a "set" block to make our dancers look smaller. 24 00:01:29,040 --> 00:01:32,220 First, drag the set block into your program. 25 00:01:32,220 --> 00:01:35,860 Then, select the dancer you'd like to change 26 00:01:35,860 --> 00:01:39,300 and type in the size that will appear on screen. 27 00:01:50,640 --> 00:01:52,640 Full size is 100. 28 00:01:52,649 --> 00:01:57,539 If you choose a lower number, that will make the dancer smaller. 29 00:01:57,540 --> 00:02:00,760 The smaller the dancer is, the further away it looks. 30 00:02:00,760 --> 00:02:03,720 This is a great way to make backup dancers. 31 00:02:10,360 --> 00:02:15,680 Using the set block, you can also change the dancer's dimensions, 32 00:02:15,680 --> 00:02:17,080 rotation, 33 00:02:17,820 --> 00:02:18,980 position 34 00:02:20,240 --> 00:02:21,840 and color. 35 00:02:22,000 --> 00:02:23,960 By playing around with these properties 36 00:02:23,960 --> 00:02:28,140 you can make all kinds of changes and link them to different parts of the song. 37 00:02:28,960 --> 00:02:34,900 Remember, you can only set the properties of a dancer that already exists. 38 00:02:34,900 --> 00:02:39,320 Make sure that your set block comes after the "Make a new dancer" block. 39 00:02:39,330 --> 00:02:41,189 Feel free to experiment, be creative, 40 00:02:41,189 --> 00:02:42,480 and have fun.