Return to Video

Dance Party - Events

  • 0:09 - 0:11
    I'm Aloe Blacc.
  • 0:11 - 0:14
    I'm a singer/songwriter and entertainer.
  • 0:14 - 0:17
    I think computer science is really important to learn
  • 0:17 - 0:19
    because computer science is the future.
  • 0:19 - 0:26
    And I think it's important for people to be in control of the technology
  • 0:26 - 0:29
    that is literally controlling their lives.
  • 0:30 - 0:35
    To make different dance moves happen at just the right time with the music,
  • 0:35 - 0:38
    you can use something called events.
  • 0:38 - 0:42
    An event tells your program to listen for something to happen,
  • 0:42 - 0:44
    and then react right away.
  • 0:44 - 0:49
    Some examples of events are listening for a mouse click,
  • 0:49 - 0:54
    an arrow button, or a tap on the screen.
  • 0:54 - 0:59
    The event we're going to use now will listen for a change in the song.
  • 0:59 - 1:04
    The change will trigger your dancer to do a new dance.
  • 1:04 - 1:10
    Professional dancers practice their choreography by counting the beats of the song.
  • 1:10 - 1:15
    In music, a measure refers to a certain number of beats.
  • 1:15 - 1:20
    In most popular songs a measure is 4 beats long.
  • 1:20 - 1:25
    To get your dancers to let loose, you'll need a green event block.
  • 1:25 - 1:30
    This event block says after four measures.
  • 1:30 - 1:37
    If you drag out a purple 'do forever' block, you can pick a dance for your dancer to do.
  • 1:37 - 1:41
    Because it's under the after four measures event block,
  • 1:41 - 1:47
    your dancer will wait for four measures of the song before starting their dance.
  • 1:47 - 1:51
    Keep an eye on the measure counter at the top of the display area.
  • 1:51 - 1:56
    Look and listen for the event that will
    trigger the dance code.
  • 1:57 - 2:00
    And right on cue our dancer starts going!
Title:
Dance Party - Events
Description:

more » « less
Video Language:
English
Duration:
02:11

English subtitles

Revisions