Welcome back, my fellow future game developers.
Why did I say futures this time not as the regular words that I say.
Well, because this is the video where you decide whether you want to
become a true game developer or you just want to follow the steps that I make.
Because this video, everything that we do, extremely simple.
We've already done that.
We've already done everything.
There is nothing new to learn.
This video is all about using
your imagination and training those game developer muscles that you have.
I've told you all the time that you need to add your own creativity and to the game.
To this point, you've always been following what I've done 100%.
This is the time to actually think of different ways you
can use or different game designs that you can use in your game.
So without further ado,
let's not waste any more time and let's get started.
Hey, welcome back.
So this video is all about gangs design.
It's not going to be very long.
It's just going to be an example of how you would like to design your gain.
So obviously right now you already know that when
the enemy is shooting at us, as you get close,
you can see that we can shoot off his bullets every time the shot towards us.
Okay, Great. Now, that is good enough.
But what if the time between shots is,
let's say 0.1 from the game again.
So you can see right now that the bullets of the enemy are destroying themselves.
Why? Because that's how we've set up the layers.
And one more thing also,
if we go ahead and try to sell it back to one,
okay, So the enemy shoots arrows.
Let's see what is happening.
0 times 0, 0 know,
back in here we choose the enemy.
If we put them, you can see right now that the enemy starts shooting himself.
There you go.
You can see that the bullet of the enemy actually kills him.
So what's the whole point of this video?
It's to issue you this challenge.
And your challenge is going to be to create an enemy bullet layer.
So create an enemy bullet layer,
assign it to the enemy bullets or the bullets,
obviously the, whatever it is,
the sword or maybe you've created your own, I don't know.
And then decide whether you want the enemy bullets
to interact with the players bullets based on your game.
If you want the enemies bullets to kill the enemy.
If you want the other enemy bullets to interact with enemy bullets.
Like this is the point where you decide how you want your game to look.
Maybe enemy killing themselves if they are stupid,
is a good idea at will enhance the realism or
the feel of the game better than having the bullet just traverse through the enemy.
Maybe you don't want your bullets to destroy the enemies bullets.
So this will add a more challenging gameplay to your game.
Take the time to think of all the ways that Sure game can unfold.
So with that said,
pause the video right now,
go to the challenge.
Okay, welcome back.
So I'm going to go ahead and add a layer in here which will be the enemy bullets enter.
Go to the flank, skeleton sorts like the enemy bullets.
Let's go to the Edit.
Let's check the project settings.
The enemy bullets should not interact with the enemy bullets,
and the enemy bullets should not interact with the enemy,
but we don't have an enemy layer.
Well, let's go ahead and added,
if I check the enemy,
this should be the skeleton enemy.
Enter.
Let's go ahead and the prefab him.
Let's create a new folder for the enemy prefabs.
Because maybe you just want to create another one later on.
There you go. Let's set his layer as the,
okay, we haven't created the layer.
The enemy hit Enter.
Select the dude.
And let's make him yes,
change children's save that, run the game.
So now if our skeleton enemy has a time between shots of
0.1 and let's see how that looks. There you go.
He shoots a lot of bullets and they do not destroy themselves.
They are ugly, but they do not destroy themselves.
That's, let's stop this for a second.
Keep this at one.
Maybe increase the range of fire.
So their case range,
where is it shooting range?
There we go.
Increase it a bit.
I wouldn't move the player into the range.
And I'm going to select the,
where is he the enemy?
I'm going to move him in front of the bullets.
So is he destroying himself with the bullets z.
Okay, so he's still is.
So we need to go added project settings.
And the enemy does not interact with the enemy bullets,
or maybe the enemy doesn't even interact with the enemy.
So it goes to you,
what are your preference?
I told you you are going to be adding your own creativity and to the game.
This is the time if you still haven't done anything,
do something different than me.
Try to do the challenges all the time.
Make sure that you try your best every single time you
might come up with code that is better than mine are not getting.
I sometimes get suggestions,
suggestions from students that are incredible and things that I haven't even noticed.
So I always recommend that you go do your best with that.
I hope you enjoy.
If you haven't left a review yet, do me the favor,
do the review, make sure that you always commit your changes.
It helps me out a lot when you leave
a review at lets everyone know this is a good course.
It's worth watching.
I hope you are enjoying and I'll see you in the next section,
may be where we start setting up the health system if I'm not mistaken.
So that said, I'll see you in the next video and section.