Hey, welcome back to a brand new video,
my favorite game developers.
This will be a very short one because I
think we already know how to do these things.
So I'm going to give you a virtual challenge.
There is no slides, there is no time.
Just pause the video and think of how we
can actually earn these Bitcoins.
Okay, Time's up.
And now that you've thought of it,
where should we be doing it?
Well, we should be doing it whenever we kill an enemy.
So I'm going to turn on the wandering goblin.
In here, we're busy.
So turn on the wandering goblin,
turn on the cowardly flying and the patrolling mushrooms.
So now we have a ton of enemies and
our game flying around and trying to class.
Hopefully we get the rifle.
And how are we going to do this?
Well, if you remember,
every single one of the enemies
has the item dropper in here.
And you can see that we have
an item drop which is the half.
So what we can do,
we can add one right here and make the Bitcoin.
And another cool mechanic is that we can create the
two or add two bitcoins or
even three bitcoins and 1.5 back.
And this will make
the game a bit more realistic because as you know,
whenever you are not realistic, maybe hard.
I materialistic by a realistic games.
So our gain will becomes a more green, more grounded.
So we, as you play a game,
you know, for example,
you goes through rooms or you kill enemies,
but not all of them give you health.
Most of them don't.
So what you need to do is you need to kill
a lot and tried to survive
as much as possible until you get a health bot,
bot the money, well,
you get a lot of money.
So we add more bitcoins.
And if you remember, if we go into the item Docker,
you'll see right here that we create
a random variable integer and
use that to get one of the items job.
So when you add more bitcoins,
you get a better shot at picking up a bit quiet.
So what happened in years?
So the cowardly flying,
Let's add the bitcoin.
Is it?
So I'm adding the one that is already here.
I don't think that's a good idea.
Let me add the prefab and stats.
So I'm going to go into
the Prefabs level, not enemy bullets.
Prefabs, where are the pickups?
So in here that's go back into the one right here,
and instead we'll use the Bitcoin,
that is the prefer.
I don't think it will make much of a difference,
but just to make sure that we don't do something stupid.
And let's add the Bitcoin right here.
We add 24, the patrolling,
we have a 5050 chance.
So when we collate patrolling enemy,
we have effective chance.
We save all of that.
We run the game and hopefully we get let's see,
nope, not the shotgun.
I want the rifle. Make things faster. Come on.
Again.
Let's play.
Come on. Rifle called, Come on.
Give me that command. We're going to try.
Honestly, I don't want the rifle.
I mean, I do want the rifle.
Could think this video is short known of the pistol.
Please come on.
Rifle, rifle, rifle, rifle. There we go.
So now I'm going to shoot the life out of these goblins.
So as you can see, how cool is that.
So life we get a life,
We didn't get the Bitcoin that we wanted.
Again, let's try to kill this.
Okay, so again, we got a life for some reason,
either our luck is extremely
bad or we did something wrong.
So let's see what we did wrong.
So we have the Bitcoin in here,
the job chance as 1, 0.
Okay, welcome back.
So for some reason I just played that,
tested it a couple of more times and
all the time we always had with console. I don't know.
I guess our luck was that bad.
Let me just remove the pistol from here.
And let's also remove the shotgun.
I just want to get rifle, run the game.
Let me get the rifle.
And now we should see that when
I kill this little dude right here.
Okay, so there we go. We get Bitcoin,
we pick it up, we get ten.
And have you noticed that our gain
is actually pretty hard.
So I have to walk around this guy and I have to kill
him and look how he runs away
fast and there we go In other coin.
And then we go home and getting another coin.
There we go. So now we have 30 coins.
Now, another thing that we can also do to earn these are,
where is it, Where is it The breakable pot?
You can see right here we can add a couple of
these. There we go.
Nope, add a couple of
Bitcoin so we have a better chance
and let's apply these changes.
Because I apply the changes,
I don't know if it affected.
It shouldn't have affected,
but I guess maybe we break it.
There we go, we get this.
Let's try breaking it again.
We should get the Bitcoin.
So for some reason when we add a new oh, there we go.
And we then pick it up and we get that.
So I hope you enjoy it.
Make sure to commit your changes,
even though we didn't do anything.
Don't need to commit your changes this time.
Enjoy yourself, have fun every single time,
and I'll see you in the next video.