[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:06.84,0:00:09.21,Default,,0000,0000,0000,,Now that you've learned\Nhow to use Sprite Lab, Dialogue: 0,0:00:09.21,0:00:11.49,Default,,0000,0000,0000,,you're going to want to make\Nyour program react Dialogue: 0,0:00:11.49,0:00:12.75,Default,,0000,0000,0000,,when someone plays\Nwith it. Dialogue: 0,0:00:13.33,0:00:15.63,Default,,0000,0000,0000,,To do that, you're going to\Nuse events. Dialogue: 0,0:00:16.22,0:00:21.30,Default,,0000,0000,0000,,Blocks like `when clicked` and \N`while touches` are called event blocks. Dialogue: 0,0:00:21.80,0:00:23.94,Default,,0000,0000,0000,,The code connected to\Nan event block Dialogue: 0,0:00:23.94,0:00:25.59,Default,,0000,0000,0000,,runs when the approprite input, Dialogue: 0,0:00:25.59,0:00:28.94,Default,,0000,0000,0000,,like a click or a tap, is detected. Dialogue: 0,0:00:31.99,0:00:36.55,Default,,0000,0000,0000,,For example, if you attach this\N`change size by` block Dialogue: 0,0:00:36.55,0:00:45.65,Default,,0000,0000,0000,,to the `when Alien 1 clicked` event\Nthe sprite will change size when it's clicked. Dialogue: 0,0:00:49.69,0:00:53.04,Default,,0000,0000,0000,,Notice that event blocks don't snap\Ninto your main program. Dialogue: 0,0:00:53.04,0:00:55.60,Default,,0000,0000,0000,,Instead, they create \Nlittle programs of their own. Dialogue: 0,0:00:57.40,0:01:00.93,Default,,0000,0000,0000,,Remember that even if the event\Nonly happens one time, Dialogue: 0,0:01:00.93,0:01:03.25,Default,,0000,0000,0000,,behaviors will go until you stop. Dialogue: 0,0:01:05.21,0:01:07.43,Default,,0000,0000,0000,,You can use a `stops` block Dialogue: 0,0:01:07.43,0:01:10.05,Default,,0000,0000,0000,,if you don't want multiple events\Nto combine behaviors. Dialogue: 0,0:01:32.39,0:01:35.32,Default,,0000,0000,0000,,Using events, you can create\Nimaginative programs Dialogue: 0,0:01:35.32,0:01:36.86,Default,,0000,0000,0000,,and interactive worlds. Dialogue: 0,0:01:36.86,0:01:37.73,Default,,0000,0000,0000,,Give it a try!