Week 3: Sound and Effects - June 1st - June 4
Tutorial
·
Beginner
·
+0XP
·
60 mins
·
Unity Technologies

Join us Mondays and Thursdays 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.
Languages available:
1. Before you begin
To participate in this session and follow along, you need:
- Unity 2020 LTS installed through the Unity Hub
If this is your first Create with Code live learning session, you can catch up by:
- Completing the required content from previous weeks
*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.
2. Week 3 Content
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 Tuesday when we kick off the project together, use the links below to continue working through the Unit independently.
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.
- Unit 3 Bonus Features
- Easy: Randomize obstacles
- Medium: Double jump
- Hard: Dash ability and score
- Expert: Game start animation
Jr. Programmer Content
3. Live Sessions - Tuesday, June 1 and Thursday, June 3
Monday, June 1 Recording:
Thursday, June 3 Session Recording:
Bonus Content! Thrashy Trashy Pandas Control Full Solution:
Friday Power Up Session Recording:
4. 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:
- Follow the instructions to build your project for WebGL
- Go to Unity Connect and click the Post Project button in the top-right corner
- Follow the instructions to upload your WebGL project
- 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!