0:00:00.459,0:00:05.200 Well, hello, my name is Charita Carter. I'm[br]a senior creative producer here at Walt Disney 0:00:05.200,0:00:09.550 Imagineering. I'm responsible for leading[br]teams that actually produce the attractions 0:00:09.550,0:00:16.569 that our guests get to experience. We are[br]always looking for ways that we can improve 0:00:16.569,0:00:21.220 and make a better experience for our guests[br]and technology is at the heart of that. 0:00:21.220,0:00:27.640 Congratulations, you did it! You programmed[br]BB-8. Now I think we're ready for something 0:00:27.640,0:00:33.250 harder. Let's go for it. Now that you've learned[br]the basics of programming, we're going to 0:00:33.250,0:00:40.160 back in time to build your own game, starring[br]R2-D2 and C3PO. To make a game, we need to 0:00:40.160,0:00:45.989 learn about something that game programmers[br]use every day: they're called events. 0:00:45.989,0:00:51.089 Events tell your program to listen or wait[br]for when something happens and then when it 0:00:51.089,0:00:56.829 does, it performs an action. Some examples[br]of events are listening for a mouse click, 0:00:56.829,0:01:02.710 an arrow button or a tap on the screen. Here[br]we're going to make R2-D2 move up to deliver 0:01:02.710,0:01:07.090 a message to a rebel pilot and then move down[br]to the other rebel pilot. 0:01:07.090,0:01:12.570 We'll use events to make him move. When the[br]player uses the up/down arrow keys, or the 0:01:12.570,0:01:19.549 up/down buttons. We use the when up event[br]block and attach the go up block to it. When 0:01:19.549,0:01:25.270 the player presses the up arrow key, the code[br]attached to the when up block is run. And 0:01:25.270,0:01:28.710 we'll do the same thing to make R2-D2 move[br]down. 0:01:28.710,0:01:34.740 Now instead of writing all the code to control[br]our droid in advance, we can let R2-D2 react 0:01:34.740,0:01:40.810 to button press events that move him around[br]the screen. Step by step, your game is getting 0:01:40.810,0:01:42.510 more interactive.