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
Indonesian
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
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
OK, so we've sorted our main menu.
And if you want to give your game kind of a title like a name or something, feel free just to put a
bit extra text on there if you want.
But this is what you will see when you first start your game.
So I'm going to go back to the my scenes folder.
And load the main scene again.
OK, and then in a script, so main script, we want to take a look at our game over.
We have got a public function or custom shop function called check for Gameover.
If health board fill amount is less than or equal to zero, or instead of doing a book, we now can
call the actual scene.
So we're going to return to menu.
So we're simply going to say, first of all, we're going to make sure that our bullets of totally gun
bullet count equals zero.
The reason why we're going to do that so that we can no longer fire because your buttons will still
work, even though you're about to go into the main back to the main menu.
If it's zero, it'll stop you from firing.
We're also going to display bullets.
Just so that they disappear off the screen and then we're going to create a new game object that's called
Game Over.
Seductive, too.
True.
It's not checked for game over, it's just game over and it's lowercase G.
But I haven't created that yet, so we'll do.
And then we're simply going to pause time here at this point.
So we're going to say time the time scale equals zero.
OK, so let's sort out this game over.
Love a long time reloading played down Mitchell's ball.
OK, we'll have to put it right here on the bottom so we myself, another comment
game over public.
OK, so game object called in over.
There we go.
OK.
And so now we can create a little bit of a display on the screen that shows you when it's game over.
So on that canvas, I want to do on to right click, choose UI and a new panel.
This creates this entire screen.
And click on the color of the panel and perhaps make this like dark gray, drag the alpha and pretty
much drag this.
So this.
You can slightly see below it.
But we're increasing the font.
No, actually, I'm going to increase my offer all the way to 255.
The reason why mobile devices don't particularly like things that are very low alpheus when they're
transparent like that, the rendering can basically took your phone.
And the graphics elements in mobile phones really don't like transparent objects.
And now I want to make this smaller in terms of scale.
So on the X, I'll make this zero point three.
And on the Y, about zero point six.
OK, so that shows game over.
And it's not a rakas target.
It's not something we need to click on.
Call this game over panel.
And then right click UI and send text and make this text white, make choices below the Game Over panel.
Otherwise, the panel will obscure the text and the move to make the font size sixty five.
Wait till I can see it.
Sixty five might be too much.
Let me try.
Forty five.
Mean my height.
Go.
Now, the reason why it looks kind of weird on the screen is because it's sitting inside of the panel
and it's taken on the panels, unusual scale.
Okay.
I guess the reason why it looks weird, if I were to drag the text out, it would then become absolutely
huge.
Oops.
All right.
Text, if I make the text one by one, we go.
You text, OK, and if I call this game over.
Maybe with an exclamation mark, you know, make sure this is centered and then I'm going to move this
down and drag the text over the game over time.
There we go.
Notice that the scale changes this unusual number, but that's fine.
That's OK.
Gameover.
And then we actually want to display what level they achieved.
Well, actually, we can see the level at the top of the screen.
It's not necessary.
And so that's just text.
That's fine.
We now need a new button.
So right click on the canvas UI and button.
I want you to rack this.
Maybe believe it there, actually.
And let's call this return to menu, all capitals turned to menu.
I'm just going to make that button just a little bit bigger.
So in terms of height, let's just make this like this in terms of the width and the normal color.
I'll make this like an orange button highlighted color.
I'll leave it white.
OK, so it's just orange to begin with.
And the text maybe make this pure black.
OK, so it shows up nicely.
Great.
OK.
So the Gameover panel will only switch on if it is game over.
OK, so by default, we're going to switch that off.
That will switch off all sub elements as well.
Now my book needs to actually sit on the game of a panel.
It's going to be switched on all the time.
There we go.
All right, that's good.
And so now in my script, I need to write the code that we can attach to that bottom.
So let's just maybe just put it below the display bullets or above the display bullets, rather, public
and void.
Now call it back to menu.
OK, simply whenever you click on the button is can access the scene manager, don't Lozzi move in to
reload?
Level zero is the only.
And you see.
Safe that.
And now we do have to change this one the time countdown, because when we load the pool level at the
moment is going to be turned to the main menu.
We actually want it to load level one now.
That's the main game.
OK, so.
Let's go to our ground and we can see that we need a game of objects like that in there, and then on
game of a panel on that button, which is going to click, plus the drug in the ground object, find
the main.
And then we need the back to menu.
Here we go.
All right.
All sorted.
And so what I'm going to do for this is make sure that my level time limit is 30.
I'm just going to allow these characters to actually kill me.
So the mute the audio.
So you don't hear that on the simulator.
And just press play and wait for them to actually kill me.
So I'm waiting for this health bar to get down to zero.
I'd be interested to see if I can actually survive level one without actually firing any bullets.
I suspect I might be able to actually.
Notice how slow those spots are.
Yeah.
Look, Chief, now I'm on level two.
Might even be able to survive this one.
Actually, she's interesting.
And each time you level up, your health also goes up as well.
So it returns back to where it was.
Let's find out what's going to be close.
I think I'm going to level up.
Yeah, level of pursuit, OK.
Until level three now.
So everything should be moving a little bit faster.
They should be at a level where they kill off the character.
So you don't want to make it too difficult to begin with.
You know, the players to feel like, you know, they're actually achieving something, that's when
they enjoy it.
Oh, OK.
Level of chase, I hope to level four without even firing a shot.
She's really interesting.
Wow.
Oh, it's a game over paused and went straight up to level five, that's interesting.
So we've got a bit of a conflict there.
So so to be able to fix that, if we go down to where we have checked for game over, you can say if
health bar the full amount is less than or equal to zero.
And and so a second condition must be true as well.
And that is going to be a level current time is greater than two.
So in other words, this level up so the active is not switched on.
OK, level current time is greater than two.
All right.
So it's not displaying you what you have achieved the next level.
If, for example, they've actually killed you and you've still got two seconds left, you'll actually
automatically level up.
So it just makes the game a little bit easier.
OK, so and let me just temporarily change the damage amount if I can find that player damage.
And we go damage amount.
And just for testing purposes.
So I'll keep my original amount by coming in and out and I'll make this equal to about zero point five.
So we can easily test that.
Safe?
Oh, actually, I've made that public, Ammonite.
Well, temporarily, I'll make that private so that the new amount overwrites the old amount just for
testing purposes.
And let's give this a go.
Notice that the bats are barely even moving at the moment, so makes them extremely easy to hit.
Same with the ghosts.
So level one is extremely easy, it's mostly just the zombies moving.
There we go and return to Main Menu, click on that and there we go.
OK, excellent.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.