WEBVTT 00:00:08.049 --> 00:00:10.552 Now that you've learned how to use Sprite Lab, you're going 00:00:10.552 --> 00:00:13.596 to want to make your program react when someone plays with it. 00:00:14.514 --> 00:00:16.933 To do that, you're going to use events. 00:00:17.642 --> 00:00:20.228 An event tells your program to listen 00:00:20.228 --> 00:00:22.981 for something to happen and then react right away. 00:00:24.065 --> 00:00:27.736 Some examples of events are listening for a mouse, click 00:00:28.361 --> 00:00:31.406 an arrow button, press or a tap on the screen 00:00:32.866 --> 00:00:36.578 blocks like when clicked are called event blocks. 00:00:37.537 --> 00:00:39.956 The code connected to an event block runs 00:00:39.956 --> 00:00:42.167 when the appropriate action is detected. 00:00:44.127 --> 00:00:45.462 For example, 00:00:45.462 --> 00:00:49.674 if I attach this say block to the when clicked event, 00:00:50.216 --> 00:00:52.969 my sprite will say something when the user clicks 00:00:52.969 --> 00:00:54.554 or taps on it. 00:00:56.806 --> 00:01:00.518 Notice that event blocks don't snap into your main program. 00:01:01.144 --> 00:01:04.314 Instead, they create little programs of their own. 00:01:09.527 --> 00:01:11.654 If you have multiple sprites, 00:01:11.654 --> 00:01:15.116 you can use additional events to tell an interactive story. 00:01:17.118 --> 00:01:19.204 Hello, Pizza! 00:01:19.579 --> 00:01:22.457 Avocado, my friend! 00:01:22.791 --> 00:01:26.252 You'll soon be learning how to do even more in Sprite lab, 00:01:26.753 --> 00:01:29.714 including changing the size or appearance of a sprite, 00:01:30.381 --> 00:01:34.010 setting different backgrounds, playing sounds, and more. 00:01:35.136 --> 00:01:38.181 What do you want your sprites to do when someone interacts with them? 00:01:38.807 --> 00:01:39.641 It's up to you.