Week 4 | Session 4 - Add Particles and Sound - April 16, 2020
Tutorial
·
Beginner
·
+20XP
·
60 mins
·
Unity Technologies

This game is looking extremely good, but it’s missing something critical: Sound effects and Particle effects! Sounds and music will breathe life into an otherwise silent game world, and particles will make the player’s actions more dynamic and eye-popping. In this lesson, we will add cool sounds and particles when the character is running, jumping, and crashing.
Languages available:
1. Overview
This is the same content covered in Lesson 3.4 in the independent Create with Code Course.
What you will make:
- 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.
What you will learn:
- Attach particle effects as children to game objects
- Stop and play particle effects to correspond with character animation states
- Work with Audio Sources and Listeners to play background music
- Add sound effects to add polish to your project
2. Before you Begin
To participate in this session and follow along, you need:
- Unity 2018.4 installed
- An up-to-date project open in Unity:
- If you have followed along with us this week and have your own project ready, you are good to go!
- You can also download the instructor's up-to-date project and import it (If you don't know how to import a project, you can read how here)
If this is your first Create with Code live learning session, you can catch up by:
- Following along with the recordings of our previous live learning sessions
- Completing the same lessons in the independent Create with Code Course
*Note - it is not necessary for you to catch up, but it is recommended for an ideal learning experience.
3. Join us in the Zoom Webinar
There are two different live learning sessions to choose from, each one covering the same content:
- Session 1 - 9am PT (4pm UCT): Join the webinar
- Session 2 - 5pm PT (12am UCT): Join the webinar
4. Next Steps
Get caught up:
If you were not able to finish the session along with the instructors, you can catch up by:
- Re-watching this recorded session when it is posted in Step 3 above at 3am PT (10am UCT) the morning after this session's date
- Picking up where you left off in Lesson 3.4 of the independent Create with Code Course
Bonus Challenges:
- Course challenge
- Complete the "Balloons, Bombs, and Booleans" challenge from the full Create with Code course and share it on Learn
- Experiment with new features (after making a backup)
- Add a particle effect when the player jumps and when they land
- Add a new sound effect when the player collapses on the ground
- Share your prototype
- Continue tinkering with the prototype and share it on Learn
- Look ahead to the next lesson
- If you want to go ahead and preview what we'll be covering in the next session, you can give it a try in Lab 3 of the independent Create with Code Course.
5. Recorded Live Session - 16th April - 9am PST
If you missed this live session, you can catch up with the video below:
6. Recorded Live Session - 16th April - 5pm PST
If you missed this live session, you can catch up with the video below:
7. 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! Please also share with us some of the "behind-the-scenes" info regarding how you did it.