[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:01.69,0:00:04.70,Default,,0000,0000,0000,,Let's animate Winston\Nusing the shortcuts that you just learned. Dialogue: 0,0:00:05.11,0:00:07.66,Default,,0000,0000,0000,,So, here we've got Winston with his eyes Dialogue: 0,0:00:07.66,0:00:09.95,Default,,0000,0000,0000,,and we've got this {\i1}eyeSize{\i0} variable. Dialogue: 0,0:00:09.95,0:00:12.75,Default,,0000,0000,0000,,So if we wanted to make\NWinston's eyes get bigger Dialogue: 0,0:00:12.75,0:00:15.64,Default,,0000,0000,0000,,we could just say "eyeSize += 1," Dialogue: 0,0:00:15.64,0:00:18.54,Default,,0000,0000,0000,,adding one pixel to the size of the eyes Dialogue: 0,0:00:18.54,0:00:21.43,Default,,0000,0000,0000,,each time, and {\i1}whoah{\i0}! \NLook at it, it's buggin' out! Dialogue: 0,0:00:21.43,0:00:24.02,Default,,0000,0000,0000,,Let's restart -- {\i1}whoah{\i0}! Bug out! Bug Out! Dialogue: 0,0:00:24.68,0:00:26.04,Default,,0000,0000,0000,,Now, that's pretty cool. Dialogue: 0,0:00:26.04,0:00:28.07,Default,,0000,0000,0000,,And, it turns out in programming Dialogue: 0,0:00:28.07,0:00:30.11,Default,,0000,0000,0000,,we actually add one to variables a lot. Dialogue: 0,0:00:30.11,0:00:32.14,Default,,0000,0000,0000,,Maybe while animating but also, Dialogue: 0,0:00:32.14,0:00:34.16,Default,,0000,0000,0000,,you'll see there's a lot of other reasons Dialogue: 0,0:00:34.16,0:00:36.45,Default,,0000,0000,0000,,why we add one to variables later. Dialogue: 0,0:00:36.45,0:00:39.28,Default,,0000,0000,0000,,Programmers got bored \Nof writing "+= 1" all the time Dialogue: 0,0:00:39.28,0:00:41.45,Default,,0000,0000,0000,,because programmers\Nget bored of silly things. Dialogue: 0,0:00:41.45,0:00:43.76,Default,,0000,0000,0000,,So they came up with\Na shorter way of writing it. Dialogue: 0,0:00:43.76,0:00:48.79,Default,,0000,0000,0000,,So instead of "eyeSize += 1," \Nwe could just write "eyeSize++" Dialogue: 0,0:00:49.37,0:00:52.30,Default,,0000,0000,0000,,You see, it will do \Nexactly the same thing. Dialogue: 0,0:00:52.30,0:00:54.24,Default,,0000,0000,0000,,It's just a shorter way of doing it. Dialogue: 0,0:00:54.98,0:00:57.65,Default,,0000,0000,0000,,And not only do we use \Nthis in programming, Dialogue: 0,0:00:57.65,0:01:00.39,Default,,0000,0000,0000,,Now most programmers \Nuse it in everyday speech. Dialogue: 0,0:01:00.39,0:01:03.42,Default,,0000,0000,0000,,Because pretty much \Nwe're all familiar with {\i1}++{\i0}. Dialogue: 0,0:01:03.42,0:01:05.13,Default,,0000,0000,0000,,And it's an easy way of saying Dialogue: 0,0:01:05.13,0:01:07.32,Default,,0000,0000,0000,,that you're making \Nsomething a little bigger. Dialogue: 0,0:01:07.32,0:01:09.93,Default,,0000,0000,0000,,So if we went to Winston's birthday party, Dialogue: 0,0:01:09.93,0:01:12.62,Default,,0000,0000,0000,,we might say, "Oh, happy birthday\NWinston, Winston++!" Dialogue: 0,0:01:12.62,0:01:14.66,Default,,0000,0000,0000,,Because Winston just got a year older. Dialogue: 0,0:01:15.46,0:01:17.56,Default,,0000,0000,0000,,Or if we just learned a new fact you might be like, Dialogue: 0,0:01:17.56,0:01:20.52,Default,,0000,0000,0000,,"Oh, go us, intelligence++!" Dialogue: 0,0:01:21.51,0:01:23.08,Default,,0000,0000,0000,,That's pretty fun. Dialogue: 0,0:01:23.08,0:01:25.89,Default,,0000,0000,0000,,So when should you use ++ versus +=? Dialogue: 0,0:01:25.89,0:01:29.60,Default,,0000,0000,0000,,Well, I think for animation \Nit's cool to use +=, because then Dialogue: 0,0:01:29.60,0:01:32.14,Default,,0000,0000,0000,,you can use the number scrubber\Nand you can be like, Dialogue: 0,0:01:32.14,0:01:35.06,Default,,0000,0000,0000,,"Whoah! Let's make it -- whoah whoah!\NThat was awesome! Dialogue: 0,0:01:35.06,0:01:38.03,Default,,0000,0000,0000,,Let's make it really crazy,\Nreally different! Dialogue: 0,0:01:38.03,0:01:41.49,Default,,0000,0000,0000,,Oh! (laughter) See how fun that is? Dialogue: 0,0:01:41.70,0:01:44.30,Default,,0000,0000,0000,,But, you know, depending \Non what you're doing Dialogue: 0,0:01:44.30,0:01:46.65,Default,,0000,0000,0000,,it might be convenient just to say "++." Dialogue: 0,0:01:46.65,0:01:49.93,Default,,0000,0000,0000,,And you'll see later\Nthat there's lots of times Dialogue: 0,0:01:49.93,0:01:51.69,Default,,0000,0000,0000,,when you might want to add one Dialogue: 0,0:01:51.69,0:01:53.46,Default,,0000,0000,0000,,to variables, not just for animation, Dialogue: 0,0:01:53.46,0:01:56.02,Default,,0000,0000,0000,,where the {\i1}++{\i0} operator \Ncould become even more useful. Dialogue: 0,0:01:56.02,0:01:58.44,Default,,0000,0000,0000,,So just keep that in mind\Nwhen you see that ++ Dialogue: 0,0:01:58.44,0:02:00.60,Default,,0000,0000,0000,,and try using it in your everyday speech.