Week 3 - Sound and Effects: Jul 27 - Jul 31

Exercise

·

Beginner

·

+60XP

·

180 mins

·

Unity Technologies

Week 3 - Sound and Effects: Jul 27 - Jul 31

Join us Mondays Wednesdays and Fridays at 9:00am PT by registering here.

This week, you will program a fast-paced endless side-scrolling runner game where the player needs to time jumps over oncoming obstacles to avoid crashing. In creating this prototype, you will learn how to add music and sound effects, completely transforming the experience of your projects. You will also learn how to create dynamic endless repeating backgrounds, which are critical for any side-scrolling games. Finally, you will learn to incorporate particle effects like splatters and explosions, which make your games so much more satisfying to play.

1. Overview

This week, you will complete Unit 3 from Create with Code, where you will learn the fundamentals of implementing Sound and Effects as you create an endless runner style game.

After the live session on Monday when we kick off the project together, use the links below to continue working through the Unit independently.

If you get stuck or have a question, send us your question or your broken project so that we can help you during Wednesday's live troubleshooting session.

For the best experience, you should aim to complete the essential content below before the live session on Friday, when we will show you how to take your finished projects to the next level.


Click on the links below to access the course content, but come back to this page to join in on our live sessions!

Essential content

  • 3.1 - Jump Force
    • The character, background, and obstacle of your choice will be set up. The player will be able to press spacebar and make the character jump, as obstacles spawn at the edge of the screen and block the player’s path.
  • 3.2 - Make the World Whiz By
    • The background moves flawlessly at the same time as the obstacles, and the obstacles will despawn when they exit game boundaries. With the power of script communication, the background and spawn manager will halt when the player collides with an obstacle. Colliding with an obstacle will also trigger a game over message in the console log, halting the background and the spawn manager.
  • 3.3 - Don't Just Stand There
    • With the animations from the animator controller, the character will have 3 new animations that occur in 3 different game states. These states include running, jumping, and death, all of which transition smoothly and are timed to suit the game.
  • 3.4 - Particles and Sound Effects
    • Music will play as the player runs through the scene, kicking up dirt particles in a spray behind their feet. A springy sound will play as they jump and a boom will play as they crash, bursting in a cloud of smoke particles as they fall over.

Optional content

  • Challenge 3 - Balloons, Bombs, and Booleans
    • Apply your knowledge of physics, scrolling backgrounds, and special effects to a balloon floating through town, picking up tokens while avoiding explosives. You will have to do a lot of troubleshooting in this project because it is riddled with errors.
  • Unit 3 Quiz
    • Assess your knowledge of the skills and concepts learned in Unit 3.

2. Before you begin

To participate in this session and follow along, you need:

If this is your first Create with Code live learning session, you can catch up by:

*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.

3. Live Session - Monday, July 27 - Prototype Preview

Recorded Live Session - 27th July - 9am PST

If you missed this session, you can catch up with the video below:

Bonus Features

Below are challenges at varying levels of difficulty for you to try and take your skills to the next level. Note that you may have to do a bit of Googling to figure out the Hard and Expert challenges.

  • Easy
    • Randomly select from a variety of obstacles to spawn.
  • Medium
    • Program a double-jump, so the player can jump one additional time once already in the air. Along with this, you could create a new extra tall obstacle that requires a double-jump (maybe two obstacles stacked on top of each other).
  • Hard
    • Add a “dash” / “super speed” ability where, if the player is holding a certain key, the player runs faster through the world, matched by a faster running animation. Use Debug.Log to track the player’s increasing score from 0, which should increase twice as fast during “dash” mode, and then stop counting when the game is over, reflecting the player’s score.
  • Expert
    • Rather than your player starting off running in place with the background moving, have the player walk into frame from the left, then begin running in place alongside the moving background.

4. Live Session - Wednesday July 29 - Troubleshooting & FAQ

Recorded Live Session - 29th July - 9am PST

If you missed this session, you can catch up with the video below:

Want help with your broken project during the live session?

  • Export your unity package:
    1. In the Project window, right-click on the "Assets" folder and click Export Package
    2. In the "Exporting package" window that pops up, click Export
    3. Save your package as "[Your-First-Name] - Prototype #" (e.g. "Aaron - Prototype 2")
  • Send us your unity package
    1. Go to share.unity.com/u/createwithcode
    2. Verify your email address
    3. Upload your .unitypackage and write a detailed message describing the problem you are having with your project

Note: Please make sure to submit your project in advance of Wednesday's session if you want us to help you troubleshoot your issues live.

5. Live Session - Friday, July 31 - Bonus Feature walkthrough

Recorded Live Session - 31st July - 9am PST

If you missed this session, you can catch up with the video below:

Download links

WARNING - downloading and importing the assets below into your existing Prototype 3 project will OVERWRITE your project. To view these projects, create a new project from the Unity Hub and import them into that new empty project.

6. Share your Modified Challenge or Prototype

If you went above and beyond and modified the challenge or prototype from this week, take a screenshot or screen-recording and post it here to share what you made!

To upload your project online as a WebGL build so others can play it, you can:

  1. Follow the instructions to build your project for WebGL
  2. Go to Unity Connect and click the Post Project button in the top-right corner
  3. Follow the instructions to upload your WebGL project
  4. Share a link in your submission description below so other people know where to find it

Please also share any "behind-the-scenes" info about how you made your project!

Please login to submit