< Return to Video

Disney Infinity Play Lab - Events

  • 0:00 - 0:06
    Now we're going to learn about something that
    all game programmers use everyday. They're
  • 0:06 - 0:12
    called "events." An event tells your program
    to listen for when something happens. And
  • 0:12 - 0:17
    then when it does, it performs an action.
    Some examples of events are listening for
  • 0:17 - 0:24
    a mouse click, an arrow button, or a tap on
    the screen. Here, we're going to make Baymax
  • 0:24 - 0:29
    move up to touch Hiro and move down to touch
    Rapunzel when the player uses the up/down
  • 0:29 - 0:35
    arrow keys or the up/down buttons. We'll use
    the "when up arrow" block and attach the "move
  • 0:35 - 0:41
    actor up" block to it, so when the player
    presses the up arrow key, everything attached
  • 0:41 - 0:47
    to the "when up arrow" block is run. We'll
    do the same thing to make Baymax move down.
  • 0:47 - 0:50
    Step by step your game is getting more interactive.
Title:
Disney Infinity Play Lab - Events
Description:

PopCap games founder John Vechey introduces the concept of 'events' inside video games.

more » « less
Video Language:
English
Team:
Code.org
Project:
Hour of Code
Duration:
0:51

English subtitles

Revisions