Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Let's Create another metre upgrade and what I want to do for this one is I want to make the play
Recover one health every
30 seconds
First thing we need to do is
Set up a minute upgrade your I'm going to duplicate the experience game here
I'm going to call this
Health region Surrey name health regeneration I do like to spell things out
Regent Health regeneration and I'll call the ID health regeneration by the way
This is some advanced and I didn't want to do this is part of course but if I was doing this as part of my full game
I would simply use the filename as the ID because then I don't have to duplicate a piece of data
Also the benefit of doing Dad is that since the IDS and the file names of the same you can
Load the file based on the ID only which is very useful so
Again I didn't do that in his course but
Subtitled by online-courses.club We compress knowledge for you!
That's just a hint for you in case you want to
You want to give it a try
Sorry because I'm going to make this more expensive put up to 200
Actually maybe maybe they should actually be turned down so that they can actually be attainable would you 54
Experience game cost and 100 for the health region
It shouldn't be that hard to get on 100
And I'm going to call this tidal health I'll call the title health regenerate because that's
Only displayed in a game is not really code
Regenerates one
Health every 30 seconds
Perfect
Alright so that's
We can actually make this multilevel
So let's make it a Max quantity of 3
Yeah so we can regenerate 3 Health every 30 seconds
Can I get a Max quantity of three again this game is not going to be very balance but I'm just building content
You can see how it works
Alright so we got to experience again let's go to our Meadow
Progression autoload here
Open up that script
Actually we don't need to be here we need to be in Meadow menu
Yes right ok here we go
So yeah in Armada menu I need to add another item to this array which is the
Health regeneration like so and I should be all that we need to do to get that
In place
Now I need to actually listen for
The timer in order to add health of the place I'm going to go to the play script
And in here
We need to we need to listen to the arena time manager difficulty
Increased
And actually I might create a different signal for this so I'm going to say
Now I'll just keep it Arena difficulty increase will listen for that because that is
Ticking every 5 seconds
So I go in my player
It might be wise to create a different signal that represents a time instead of a difficulty increase because if I
Change the difficulty interval from 5 and 4 ml of a sudden my mouth everywhere is wrong so that is a
When I can exchange
And
So we need a reference to the arena time manager
In the player script
So I'm going to create an export variable
Add export via
Arena time manager
And atom typing mode
And then on ready I'm going to say Irina time manager dot
Arena difficulty increase
Dartconnect
On Arena
On Arena difficulty increased and then I'll create that function
And then we're
Getting the difficulty in here as an Int
Ok
And then what we're going to do in here is going to say if
Are we going to save our is 30
Well it's a is 30 seconds
Interval is equal to
And then in parentheses difficulty
The useless percent which is mad
6
= 0 what does the saying is that
This difficulty is evenly divisible by 6
Then
We are
That is a 30-second interval it makes sense because the difficulty increases every 5 seconds so
When it gets to 6 That's 30 seconds when it gets to 12 that's a minute but what the model does
Return the remainder in South the remainder is 0 and that means it's a whole
It's it's fully divisible and therefore it is a 30-second chunk
So that we can say if is 30
Second interval we can take our health component
And I'm going to do something a little bit happy here
UNIS a health component damage and -1
Now I am going to change that someone to go my
Health component
Here
And
I'm going to call
A function heal and I will do heal amount
And I'm basically I am going to call damage
With -1
And then what I'm going to do is this health changed this is unfortunately not named properly
Didn't really
Armed designers with the idea that the player could heal
What I'm going to do is I'm going to change this signal I'm going to find it everywhere that is used
And then I'm going to change it to health
I'm making a new signal
Health increased
Or rather help decrease
And then I'll admit that in here so say if
Damage amount
Is
Greater than zero
Then we're going to say health decreased
So health change for fire everytime the health changes where is health decreased will only
Emit when the damage amount is greater than 0 and then in my hip flash component
This can change to health
Decreased
And this can be renamed to on
Health
Decreased
Like cell
And then or player
We can change this to help decrease as well so health
On health decreased
And then we do need to create one for health changed
And the reason we need to separate them as because we only want to play the hit
Effect when the player
Takes damage so we're nearly all those to health decreased and then I do need to take this update
How to spray out and put it into
Bank on health changed because whether the player is healing or
Being damaged
We do need to update their health display
Ok so now if I search for health changed in a whole project with ctrl shift f
So always have been health changed again when it's damaged but only mental health decreased
When
When it's when the thing is taking damage
Parents are back in our player
So in this Arena difficulty increased within a call health component damage one but now
We need a check if
We're to get the amount of healing that should happen so
Yes
Well that's not far
Seal
Upgrade
Quantity
Actually was called health Regent quantity health regeneration quantity
Is equal to
Meta progression
Get
Upgrade count
And this is health regeneration
Ok so we're getting the number of health regeneration they were going to say if health regeneration quantity
Is greater than 0 then in here
A heal by health regeneration quantity
I'm going to change the description of this whole region to regenerate one health per level
So that way it's it's indicating that if you have three of them at all recover three hell
Ok now I'm actually going to change the experience cost to zero
Well let's keep it 100
And what am I doing my medication as I'm actually going to
A Miracle on experience collected in a ready method
With an absurd number so that I have a bunch and I'm going to play the game
Play lips
I forgot to connect to the arena time manager so go to my main go to player
I'm going to pass the arena time manager into that export
Export variable
It's so now and I'm going to my upgrade I should see that I have an absurd amount of experience to use and when I
What is I can purchase the health region
Up to three times and it goes to Max just like so and now I'm going to go in test and see if
If this actually works someone intentionally take damage and then as soon as I hit the 30-second Mark I should be back up to
Call health
Actually damaged me and that's probably because I am calling
Subtitled by online-courses.club We compress knowledge for you!
The wrong method so I probably didn't replace my damage here
Right this is supposed to be here now alright I'm just going to change this to 1
Just for testing purposes
And so now every 5 seconds I should be healing
Ok and then I have a bug right here where I'm not passing in the correct heel amount so as to heal amount
Type it isn't
And then the final thing we need to do is we actually need cab the current health so we want to do
Handheld is equal to clamp so it's to a class A
Current house is equal to clamp
And then we're going to take the current health miles to damage amount
Greenock Lambert between 0 and we're going to Claire between
Max health
Ok so now everything should be in working order if I go to my upgrades I've got the hell II
And so now
I should be healing the proper amount
Yep ok so everything is working now so I'm going to put everything back in place
Go back to my player change this back to mod 6 and then in my medic progression
To remove this on experienced collected in for good measure I'm going to go to my user data folder delete that
Save running again and make sure everything is back in order
Alright so everything looks good and that is the health region m up
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.