Welcome back guys.
I'm right here and in this with you we're going to add some fire to our player we can add some invincible
Invincible mode to be actually displayed as a you I and all other sorts of stuff which is nothing else
but just that.
So your headsets continue by adding a new empty game object.
This will be art in game UI and this one will be stretched out as a whole and inside of it.
We're going to add a new image.
This one will be circles circle.
And then this will determine how big or small your team will be.
I'm going to choose something not too big not too small.
This should do it.
And I am going to put the star bit down and make it a bit darker.
So something like this.
This should work maybe a bit more and also maybe darker.
Play around with it see what or.
Yeah.
This should be called.
And I would call this in and then symbol b g then copy b added as a background as a child.
And it does feel choose the color to be white.
Add also to 100 I mean 2 5 5.
And then changes in the rink.
So this will be ring and we're going to change that image type 2 felt.
So it actually fills up all the way till the end.
So this will be determined.
So whenever we start and when then we pass about this or here it's going to show it's going to be displayed
and then we can see how much do we need until we get that fire effect and then we're going to see how
slowly it will go and be there for how long.
And so on and so forth.
So this will be for our invincible background then what are we going to go.
I mean what are we going to do is go to the layer and add everything else to the player.
So here we're going to add our public are actually young that to public game object invincible be game
then we're going to have a public image which will be that image conversion so we'll need to use using
any key engine.
Dodd you I think you're looking at a public image which will be art and then to both film some I call
on public game object.
Our fire a fact that we have and that will be pretty much at then we're going to go down a bit.
So whenever we go the invincible mode we are going to say if Ah so if our fighter isn't there that fire
effect that said active to be true actually it is our fire effect is not active inherently bad.
That is true then we're going to see fire effect that's an active to be true.
So we're going to call this only once because we're checking if it's not active which is probably not.
And then we're setting it to be true.
And those will be called only once else when we are out of the invincible mode.
We're going to check if our fire effect got active and Hiroki active market if this is true then we're
going to say to our fire effect that equals to fall.
So we're going to remove it from our planet.
Then what are we going to do is we're going to scroll down and we are going to check for certain things.
For example this I check will check for what this will be.
If our current times current time current time is greater or equal to zero point fifteen as if that
is true or if our invincible dot principle filled dot color misspoke.
Phil does color equals two color darker red than really any say then we're going to say invincible or
B.J. that's attractive.
Could be true.
Ls it going to be invincible So c'mon invincible to act to be false and then had the summer call at
the end.
So what will this do.
Well basically we're not going to spawn this immediately as soon as we click that will be kind of annoying.
As soon as you claim this will show up actually what are we going to do is we are going to show this
up only when this is about sheer about you when this is about there is gonna start showing up only then
it's in the go and then bam it's going to go up and down.
So that is one thing and other thing is when it's red.
So what I want is one this which is the end is going to change its color to red.
So we actually know we're on fire and then we can see how much it needs to go until it disappears.
So you will see that in example just a second.
Be patient a bit because we want to add one more thing.
Once invincible current time pass the one that we're going to see our invincible filled thought.
Color equals two color dark red.
And when it's not.
So when reached and we're going to see the symbol filled that color because of color dot white you can
choose any color you would like.
I'm just using red and white because red kind of represents the fire so that that makes sense.
So let's go to our layer and add our invincible Oh B.J. which is the more to shoot this over here.
Invincible field which over here can fire a flag that we're going to add inside of the visual.
So let's go to prefab facts.
Fire that and just drag it inside of here and while.
If you want to see how it is made you can check it on the right side of the particle system.
If you would like to I can make a separate video only talking about this.
But as for now I'm not going to do that.
It's really important.
And if I press play it's going to be represented as like a trail squints there.
We will add it like this.
And looks pretty cool.
It was kind of not hard to make but you basically create this one effect or here to create one effect
or here which this one or when this all spending is pointing based on the world is pointing in a circle
and then just add one more which is the orange effect.
So say one more time orange effect and then add the dust effect which is this.
Like I'm not going to I'm going to say ah it's called monthly.
It's this great ink and I just added this great public it.
So this this is like dust effect and this is the orange effect 60 basically everything is the same.
It just everything in together so everything up together like this.
So let me just delete it one more time because I think I messed up the location and added here and we
can test it out.
So if I press play if I did not edit.
So I need to edit it here and then I can press play.
So right now I'm not condoning it showing up but when I click on it you can see here we have it.
And while it works now the only thing that doesn't work is the thing that we have not added which is
invincible feel for invincible field.
What are we going to do.
We're going to check if you're invincible or B.J. dot active in America is it.
If it's active Hiroki then we're going to say that our invincible Phil dot fell amount equal to current
time divided by two climbed Invincible which actually won.
I mean you can add in.
I mean you can just add one.
It's basically the same exact thing.
So let's go ahead and play and then I can see that once we start it shows up and bam.
So we're now off course.
This will be removed later on because this will be just spear because we're not going to have.
We will not be in game we're going to be actually in the game.
All right.
And some are somewhere else but later for later as for now that will be one more thing you can play
around adding maybe point three or four point eight point three to this one because I think it showed
up pretty fast.
So I'm trying one more time.
Ben Ben Ben Ben Ben YEAH THIS WORKS THIS WORKS AND I LIKE IT.
SAY OUR GUYS double be it for this video.
I hope you like it.
Now we'll see you in the next one.