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