From the course: Cert Prep: Unity Certified Associate Game Developer Audio and Effects

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Characters and footsteps

Characters and footsteps - Unity Tutorial

From the course: Cert Prep: Unity Certified Associate Game Developer Audio and Effects

Start my 1-month free trial

Characters and footsteps

- [Instructor] In the preceding movie, we saw how to script with audio mixer assets, so that we could control complete channels and groups of music and sound effects. In this movie I wanted demonstrate how we can code, with specific audio source components on specific objects. To demonstrate this we're going to be working with the John Lemon character inside the haunted house. When we click on different locations on the floor, he walks to those locations. Let's check that out by pressing play on the toolbar. When I clicked a different points, he walks there. But as it stands, he doesn't play any footstep sounds when he walks. So I want to code an audio source component, so that the footstep sounds play when he walks, but they stop when the character stops. Let's see how to control and set that up. To start, I'm going to select the floor object in the scene. The reason that I'm doing that is because the floor object already…

Contents