Welcome back.
Now, in this section, we're quickly going to add a few finishing touches to our combat for our enemies.
And this is going to involve some minor steps.
Nothing really new or groundbreaking for you, hopefully, but it's going to add that extra bit of pop
to our combat in the form of effects, visual and sound.
Now we're going to start by polishing up the combat for our goblin spear enemy.
And I think our goblin could use a few sound effects.
And I'd like to start with its running montage.
So I'm going to go into my content assets folder into enemies goblin animations and go into the spear
animation and look at the run that we're using now.
There's two runs, run, spear two and run spear six.
I believe we're using Run spear six, but I can double check by looking at my blend space and it is
indeed run spear six.
So we're going to open up that animation and we'll just add footsteps.
We have the footsteps that we're using for Aura.
I think that would be fine if we use that now, I don't see the ground, so I can go to preview scene
settings and I'd just like to check show floor so I can more easily see when that foot hits the ground.
So I'm going to go to about right here and I'll just rename this notify track to sound and add a sound
notify.
Now, before I do, I'd like to find that sound in Assets Sound's footsteps and click on SFX Footsteps.
And now if I right click and add a notify choosing play sound, then that SFX footstep is there and
it looks like the foot hits the ground right about here.
So I'm going to move it a little forward and scoot up to the next footstep right about there.
And I'm going to control C click and control V and move that footstep up here.
And I'm just going to adjust it.
Now, if I want, I can have a quieter version for our enemies.
And I think I'd like that.
So what I'm going to do is select that sound effect and browse to it.
And right click on it and duplicate it and make a quieter one.
So I'm going to rename this the same thing underscore quiet.
And double click that.
And in this sound effect and this meta sound, there's a volume multiplier.
I'm going to take that.
It's already a pretty low number, 0.15, but I'm going to set it to 0.05.
So it's a lot quieter.
And I'm going to replace that sound effect with SFX Footsteps.
Quiet.
Now it's a lot quieter as there will be lots of enemies.
So I'd like these to be quieter so we don't have just this multitude of footsteps.
I'll even put this at probably 0.04.
Okay.
So that takes care of the footsteps.
Now, I'd like to take a look at the goblins attack.
So if I go to assets enemies, goblin animations, spear, I can take a look at the attack, and we
have a montage.
So I'd like to add a sound effect to the montage itself.
So what I'll do is just go to about where I feel a sound effect should go and I'm going to add a new
notify track called Sounds or Sound.
I think the other one had just sound.
It doesn't really matter, but I'd like a sound effect to play here.
Now let's take a look at assets sounds.
So I'm going to go into Enemies Goblin and swoosh and we have some sound effects here for a swoosh.
And we can make a meta sound out of this.
Now, if we go back out into the Sounds folder, we have an SFX template multi and template single.
Now this is a template meta sound that I've created where you can just drag in a number of sounds and
it will automatically randomize them and slightly deviate their pitch and volume so we can use this.
I'm going to go ahead and copy it and I'm going to put it into the Goblin Swoosh folder.
So I'm just going to drag it into swoosh and copy here and go into Swoosh, open up this SFX and if
we select the input array, right here is where we can drag a number of sound assets.
I'm going to drag these, so I'm going to click dock and layout so that I can open this in a separate
window and I'm going to go to Sounds Enemies Goblin Swoosh, and I'm going to select all six of these
and drag them onto this array.
Now, this array contains those six sound assets and I can close this undocked window and I can press
play and we see that there's a swoosh sound.
Now we do have the volume multiplier so we can make this less loud like 0.5.
And now we can rename this sound.
I'm going to call it SFX Swoosh.
And now that we have SFX Swoosh, we can add it to our montage.
So I'm going to right click here, add, notify play sound, and there's my swoosh.
Let's just see if the timing is right.
That looks and sounds pretty good.
Let's see how this works in game.
I'm going to save all and press play.
Here comes my goblin.
Okay, that's looking pretty good.
So now we have a couple more sounds and our goblin is just a little bit better.
Something as simple as a little sound effect makes a world of difference.
Awesome.
We'll continue with this in the next video.
I'll see you then.