WEBVTT 00:00:01.520 --> 00:00:07.300 Hour of Code | Dance Party: Properties 00:00:08.700 --> 00:00:10.300 My name is Maria. 00:00:10.300 --> 00:00:12.760 I'm a junior at the University of Washington 00:00:12.760 --> 00:00:15.020 and I'm an Amazon future engineer. 00:00:16.760 --> 00:00:18.580 I love computer science because 00:00:18.580 --> 00:00:21.820 it incorporates problem-solving and critical thinking. 00:00:21.920 --> 00:00:24.580 And after putting hours of work into something, 00:00:24.580 --> 00:00:28.540 you can get something really cool and rewarding out of it. 00:00:32.800 --> 00:00:37.220 So far, you've had a chance to play with some different types of dancers 00:00:37.220 --> 00:00:41.440 and you've programmed them to do different types of dance moves. 00:00:41.440 --> 00:00:44.620 But how do these moves really work? 00:00:44.620 --> 00:00:49.010 Every dance move is made up of a series of images called frames. 00:00:49.010 --> 00:00:52.660 Each frame is slightly different from the one before it. 00:00:52.660 --> 00:00:56.530 When your program runs, the computer shows one frame after another. 00:00:56.530 --> 00:01:00.270 They're shown so fast that it looks like the dancer is moving. 00:01:00.270 --> 00:01:03.870 This is the secret behind all animation. 00:01:03.870 --> 00:01:06.280 Not only can you change your dancer's moves, 00:01:06.280 --> 00:01:09.340 you can also change a dancer's properties. 00:01:09.340 --> 00:01:13.780 Properties describe things like the dancer's position on the screen, 00:01:13.780 --> 00:01:15.960 the dancer's size, 00:01:15.960 --> 00:01:18.300 and the dancer's color. 00:01:20.420 --> 00:01:24.700 To change the properties of a dancer, you'll use a "set" block. 00:01:24.700 --> 00:01:29.040 Let's use a "set" block to make our dancers look smaller. 00:01:29.040 --> 00:01:32.220 First, drag the set block into your program. 00:01:32.220 --> 00:01:35.860 Then, select the dancer you'd like to change 00:01:35.860 --> 00:01:39.300 and type in the size that will appear on screen. 00:01:50.640 --> 00:01:52.640 Full size is 100. 00:01:52.649 --> 00:01:57.539 If you choose a lower number, that will make the dancer smaller. 00:01:57.540 --> 00:02:00.760 The smaller the dancer is, the further away it looks. 00:02:00.760 --> 00:02:03.720 This is a great way to make backup dancers. 00:02:10.360 --> 00:02:15.680 Using the set block, you can also change the dancer's dimensions, 00:02:15.680 --> 00:02:17.080 rotation, 00:02:17.820 --> 00:02:18.980 position 00:02:20.240 --> 00:02:21.840 and color. 00:02:22.000 --> 00:02:23.960 By playing around with these properties 00:02:23.960 --> 00:02:28.140 you can make all kinds of changes and link them to different parts of the song. 00:02:28.960 --> 00:02:34.900 Remember, you can only set the properties of a dancer that already exists. 00:02:34.900 --> 00:02:39.320 Make sure that your set block comes after the "Make a new dancer" block. 00:02:39.330 --> 00:02:41.189 Feel free to experiment, be creative, 00:02:41.189 --> 00:02:42.480 and have fun.