Lesson Plan

Lesson: Lights, Music, Action
Time: 45+ mins


Hope you brought your dancing shoes! In this lesson, campers will explore their inner musician and choreographer as they create fun musical projects. Note: Modules in this lesson include a listening component, so headphones (1 per camper) are recommended. Also, campers will need a webcam to complete the last module.


  • Computer, laptop, or tablets (1 per camper)
  • Headphones (1 per camper)

New Code Blocks

  • : Run code attached to this block when you press a specified key.
  • : Set the current instrument to the instrument specified by the parameter.
  • : Play the specified note for the specified number of beats.
  • : Make the Actor perform an attacking action.
  • : Make the Actor dance for five seconds.
  • : Make the Actor flip.
  • : Make the Actor jump.
  • : Make the Actor perform a moonwalk dance move.
  • : Repeat blocks inside this loop a specified number of times.
  • : Pause the program for a specific number of seconds.
  • : Make the Actor appear on the screen.
  • : Make the Actor disappear from the screen.
  • : Change the Stage's background to the one specified.
  • : Play the specified sound file.
  • : Turn on the device's webcam.
  • : React when the specified parameter is detected.


  • Coding: Using a computer language to tell the computer what to do
  • Sequence: The order in which steps or events happen
  • Actors: Tynker characters and objects that can talk and interact with each other
  • Command: A specific action or instruction that tells the computer to do something
  • Loop: An action that repeats one or more commands over and over
  • Counting loop: A loop that repeats one or more commands a specific number of times
  • Tempo: The speed or pace of music, how fast the music plays


Campers will...
  • Create a Piano Robot project
  • Use code blocks to add background music and choreograph a dance party
  • Apply coding concepts to create a Music Video project that uses a webcam

Getting Started (5 minutes)

  • As a class, brainstorm different ways music can be applied to games. Ideas may include: to convey emotion; a challenging level might include fast-paced music; sound effects; music is part of the gameplay like in Guitar Hero or Just Dance.) Next, tell campers that they'll be creating their own music-themed projects such as a piano-playing robot, dance party, and music video!

Coding Activities (40+ minutes)

The lessons are intended for self-directed learning. Your role will be to facilitate as campers complete the Lights, Music, Action modules on their own:
1. Piano Robot (DIY)
  • In this tutorial, campers will learn how to build a musical robot that they can play by pressing keys (for web) or tilting their device (for mobile).
  • Activities include adding a background and Actors to the Stage; programming arrow keys (for web) or tilt controls (for mobile) to play notes; and selecting an instrument and tempo.
  • Remind campers that the tempo is the speed or pace of the music.
2. Build Your Own Piano Robot (DIY)
  • In this DIY (do-it-yourself) project, campers will build their own music robot that can play several different sounds of their choice! Activities include changing the background, adding Actors, programming Actors to play musical notes, and adding more musical instruments and notes.
  • Optional: Ask campers to watch the completed example in Step 1 of the tutorial.
  • If campers finish early, ask them to explore creating different sounds. Who can create a funky or futuristic beat?
3. Dance Studio (DIY)
  • Campers will preview a completed example of Actors using the following code blocks: attack pose, dance for 5 seconds, flip, jump, and moonwalk. Next, they'll create their own version of the project they just viewed.
  • Do campers need ideas to get started? Ask them to program different dance moves for each Actor or they can program all the Actors to perform in sync!
4. Music Video (DIY)
  • In this DIY project, campers will create a musical project that uses a webcam to interact with instrument Actors.
  • Step 1 of the tutorial provides a complete example. How to play: Use your webcam to touch the instrument on the Stage. What sound did it make?
  • Activities include testing for "video motion," adding Actors, using the "turn video" code block to turn on the device's webcam, adding sound, and programming the Actor to play a sound when the user touches it from the webcam video.
  • Note: If the browser is asking for permission to view the webcam, you'll want to allow it. Otherwise, you won't be able to use the webcam and the project won't work as intended.
  • Step 6 of the tutorial includes bonus activities that encourage campers to add different Actors, play different sounds, and use loops.

Wrap Up

Unplugged Activity: Discussion
Review today’s coding adventure by leading a discussion. Ask campers:
  • Who can think of another musical project they'd like to create using Tynker?
  • Does anyone play an instrument? If so, what instrument do you play?
  • Does anyone dance on a team? What type of dance do you do? Tap, ballet, flamenco, ballroom?
  • Did anyone explore different sounds? What was one of your favorite sounds?
This course is not part of your plan. Please upgrade to view all answer keys

Class Presentations

These student-facing slide presentations help educators seamlessly run Tynker lessons in a virtual or physical classroom setting. Each lesson has its own set of slides that introduce the big ideas, suggest unplugged activities, and include a section for each activity module. While running lesson slides, you can switch back and forth between the activity, the slides, answer keys and other lesson materials.
A sample slide presentation is available for your review. Please log in to view all the class presentations available with your plan..
Lesson 1
40 Slides
Lesson 2
Lights, Music, Action
23 Slides
Lesson 3
Frame-based Animation
26 Slides
Lesson 4
2D Motion
23 Slides
Lesson 5
Pen Drawing
23 Slides
Lesson 6
Alien Catcher
26 Slides
Lesson 7
Space Breaker
22 Slides
Lesson 8
Fish Tank
19 Slides
Lesson 9
Make Games - Animated Greeting Card
17 Slides
Lesson 10
Make Games - Music Video
15 Slides
Lesson 11
Make Games - Maze Game
18 Slides
Lesson 12
Make Games - 2-Player Battle Game
17 Slides
Lesson 13
Make Games - Animated Story
16 Slides
Lesson 14
Level Design
23 Slides