Join Lynn Langit for an in-depth discussion in this video Controlling basic sounds and effects, part of Learning Visual Programming with Kodu.
- We've talked a lot about adding sound in previous movies, and in this movie, I want to pull it all together. Kodu by default plays a number of sounds when you're both designing and running the games. In addition to that, as we saw in other movies, you can associate sound at the game level, at the object level, or at the action level. And adding sounds appropriately can really enhance or it can detract from games. There are also a number of sounds settings that you can use during the design phase.
The very first thing is at the top level of Kodu-- and I'm actually going to exit out of Kodu and show you where this is. Back in the configurations section, you can enable audio at the top level and turn it off or turn it on. Now, as I mentioned earlier, and I'll just reiterate this, when teaching classes, if the kids have headphones, it really works great if they can have audio turned on.
In larger classes with lots of kids, it can be a real distraction, so when you're teaching a group of kids, it's a consideration as to whether you want to turn it off. The positive, of course, is it's a little bit easier to teach and share information with the class. The negative is there's been a lot of fat put into the sound in the Kodu environment, and it really gives a lot of clues and helped kids and makes games a lot more fun. So I'm going to go ahead and leave it on. And then I'm going to launch the Kodu environment.
And sound is very associated with every aspect of Kodu and really helps kids to have more fun and understand working with the different objects because not only words but also sounds are associated. And this is actually really important in early learning. So we're going to go ahead and load a world. Oh, before we do that, we're actually going to look at the options at the level of Kodu. And we're going to see some things you can adjust in terms of sound. So you can see we have a couple of settings here. We have UI volume, so if you wanted to adjust that, you could do so.
We have effects volume, and we have music volume. So one of the other options you could use with a large class of kids if you didn't have headphones is you could just make the volume a little softer for some of these just to make the class manageable. I'm going to go ahead and leave everything on. And now I'm going to load a world. And first I'm going to play the world. And you might remember this is our motorcycle game from an earlier movie where we have a path for one motorcycle and not a path for another.
And you can see just passing my mouse over the objects they have sound associated to them. Now we're going to go ahead and start the game. I'm going to press the w key (engines revving) and you can see that the move motion has a default associated sound with it. Just makes the game a lot more fun.
So we have a number of sounds that are built in, and we can add sounds, so let's take a look at how to do that. So if we press escape and now we're in the design environment, note (swishing) that when I pass my mouse over the tools, there are sounds associated, and again, very important with younger children who maybe aren't as comfortable reading, that they're associating both the picture and the sound and it helps them have success with this programming environment. So let's go ahead and rotate this so that we can work with the motorcycles, and then let's select the object tool and select the motorcycle and right-click it and left-click it to program it.
And you'll see that we have it programmed to go on the path. So if we wanted to add some sound to this of our own, we could use the programming convention of just indenting this. And then we can add a do with an action under more of play and then we have a number of sounds. Now, it's really important you point out to the kids that once means once, otherwise the sound will loop.
So let's pick an environmental sound. And let's pick the environment of a city. (traffic noise) Notice when I pass my mouse over this, sound is previewed. (crickets chirping) There's the forest. (waves crashing) There's the ocean. So I'm going to select city and I'm going to select once. And now let's hear how that sounds when we play our game.
(motors revving) (sirens) Did you hear the city sounds overlayed with the sounds of the motion? It makes the game even more fun.
- Installing and starting Kodu
- Using the Make Land, Water, and Mountain tools
- Exporting and sharing files in Kodu
- Downloading and playing a game
- Adding objects to your game
- Programming object behavior
- Building paths
- Adding emotions and sounds to a character
- Creating advanced two-player controls
- Using the health meter
- Controlling sound