[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.46,0:00:05.20,Default,,0000,0000,0000,,Well, hello, my name is Charita Carter. I'm\Na senior creative producer here at Walt Disney Dialogue: 0,0:00:05.20,0:00:09.55,Default,,0000,0000,0000,,Imagineering. I'm responsible for leading\Nteams that actually produce the attractions Dialogue: 0,0:00:09.55,0:00:16.57,Default,,0000,0000,0000,,that our guests get to experience. We are\Nalways looking for ways that we can improve Dialogue: 0,0:00:16.57,0:00:21.22,Default,,0000,0000,0000,,and make a better experience for our guests\Nand technology is at the heart of that. Dialogue: 0,0:00:21.22,0:00:27.64,Default,,0000,0000,0000,,Congratulations, you did it! You programmed\NBB-8. Now I think we're ready for something Dialogue: 0,0:00:27.64,0:00:33.25,Default,,0000,0000,0000,,harder. Let's go for it. Now that you've learned\Nthe basics of programming, we're going to Dialogue: 0,0:00:33.25,0:00:40.16,Default,,0000,0000,0000,,back in time to build your own game, starring\NR2-D2 and C3PO. To make a game, we need to Dialogue: 0,0:00:40.16,0:00:45.99,Default,,0000,0000,0000,,learn about something that game programmers\Nuse every day: they're called events. Dialogue: 0,0:00:45.99,0:00:51.09,Default,,0000,0000,0000,,Events tell your program to listen or wait\Nfor when something happens and then when it Dialogue: 0,0:00:51.09,0:00:56.83,Default,,0000,0000,0000,,does, it performs an action. Some examples\Nof events are listening for a mouse click, Dialogue: 0,0:00:56.83,0:01:02.71,Default,,0000,0000,0000,,an arrow button or a tap on the screen. Here\Nwe're going to make R2-D2 move up to deliver Dialogue: 0,0:01:02.71,0:01:07.09,Default,,0000,0000,0000,,a message to a rebel pilot and then move down\Nto the other rebel pilot. Dialogue: 0,0:01:07.09,0:01:12.57,Default,,0000,0000,0000,,We'll use events to make him move. When the\Nplayer uses the up/down arrow keys, or the Dialogue: 0,0:01:12.57,0:01:19.55,Default,,0000,0000,0000,,up/down buttons. We use the when up event\Nblock and attach the go up block to it. When Dialogue: 0,0:01:19.55,0:01:25.27,Default,,0000,0000,0000,,the player presses the up arrow key, the code\Nattached to the when up block is run. And Dialogue: 0,0:01:25.27,0:01:28.71,Default,,0000,0000,0000,,we'll do the same thing to make R2-D2 move\Ndown. Dialogue: 0,0:01:28.71,0:01:34.74,Default,,0000,0000,0000,,Now instead of writing all the code to control\Nour droid in advance, we can let R2-D2 react Dialogue: 0,0:01:34.74,0:01:40.81,Default,,0000,0000,0000,,to button press events that move him around\Nthe screen. Step by step, your game is getting Dialogue: 0,0:01:40.81,0:01:42.51,Default,,0000,0000,0000,,more interactive.