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
Now, when when we actually reached zero in the time of going to level up, now at the moment it's just
going to be the same level playing over and over again.
That's going to become very repetitive and very boring.
So like I explained before, we Tetris, each time you level up, it gets a little bit faster, it becomes
more challenging.
Now, with mobile games, you generally don't want to get too ambitious because mobile can only really
handle so much data as you have to keep your game kind of well contained.
You have to have pretty good game mechanics that can, you know, ensure that players are going to play
for quite a long time without overloading your system.
So just a simple mechanic like speeding things up.
So it gets, you know, very competitive, is a great mechanic.
If you consider, for example, something like Flappy Bird, that was a really, really big success.
And take a look.
There's practically nothing in it.
All you're doing is avoiding pipes.
And but it became a huge success.
It was really, really small concept, but with a great mechanic.
And so what we need to do, we need to display which level we're currently on.
People can see I'm on level 10 already.
This is great.
And so we need some more text.
So I'm going to take my time.
A text, just duplicate.
I'm going to call it level text.
OK, and I'm going to move this one over to the left.
Now I'm going to put it on the left side of the screen whenever you do this.
Just make sure that you do check all your different devices.
I mean, that's OK.
There should be fine.
And just make sure that it's not off the side of the screen or anything.
I mean, there if somebody is playing a tableau, got a bit of an issue with the bullets there as well.
So, yeah, I just want to bring that one in on the.
You know, it's all the way over that's really, really long phone and.
I think that should be fine, actually.
But obviously, I wanted to say something different than 30 on its level one.
OK, something like that.
I think that looks fine.
Where this to be honest and.
Yeah, so I think it's mostly just checking the tablets actually to see how it displays on those phones
are generally OK and they'll change back to the Samsung Galaxy J seven.
That's fine.
I'll just make sure that that level text sits at the top left corner.
So with Dankers, I'll just anchor it to the top left.
It always sits there.
I should also do that with the timer text as well.
So is there a center screen?
Just the top mental.
OK, top center.
So with this level text, we want that obviously the number to actually go up with each level.
You could also do with some kind of an indication as well that we're actually about to level up.
So let's just duplicate this one.
Move down a little bit and position this one more into the center.
The text, I'll actually make this a little bit bigger, about twenty five.
So you can really see this and I'll call this leveling or wonder if maybe not bold, just normal leveling
up.
Kind of looks weird.
I mean, that is a word leveling, but it kind of looks weird.
We call it about to level up.
Think.
Well, shall I say, level up achieved that sounds more dynamic, and I notice I can't see the achieved,
and that's simply because the width I don't have enough weight from there, so I'll just click and drag
on the width until it appears.
There we go.
Level of chief sounds very dynamic.
It sounds like you've actually achieved something.
You know, you're actually making progress.
So I think that's fine.
I'll call it level up.
No, we have to do that.
We don't object to simply just switch it on or off, depending on when we're about to level off.
OK, so back to our script then.
At the moment, we got the speed of our enemy and it's the constant one.
Well, I'm just going to take that speed.
I'm going to leave it at one.
Actually, that's fine.
But what I want to do each time that we love a slope, I want that speed to be multiplied by whichever
level number.
That means that the enemies will be moving faster each level.
OK, so.
Where we've got oh, or I'll come to the bottom here, actually, and leave myself new comments on local
level.
OK.
And first of all, we need a public.
Oh, and I'll make this estatic, actually, because we will need all the scripts to talk to this of
an integer that we'll call level number.
Make it equal.
Want to begin with because we're reloading, seeing if we don't make it a public static, just the public.
That number will never get remembered.
OK, it will basically reset itself every time it loads, whereas if it's public static, it gets loaded
into ram into the computer's memory.
So it will persist even though we actually load a new level.
OK, so it will remember exactly what level number world than a public game object called level.
OK.
So you can simply switch on there off and then we need the text.
So public type text or call level text.
OK.
Right.
So when we start, one of the first things that we need to do is say lovel text, dot text equals,
and I'll type this in string level.
And then this space.
So that's exactly what it will display.
And then plus equals.
And the actual level.
No.
Now, because the level number is only just a simple integer.
If we don't type level and it will effectively just display one, two, three, four, et cetera.
So it doesn't like that.
Why doesn't it?
Like it's left on side of an assignment must be a variable property or index level text.
Don't text equals level plus equals.
A whole number.
No, that's not correct.
It's.
Yes, to spring.
Find out.
Oh, yeah.
Plus equals.
Here we go, and then this comes up here, level text, that text equals this.
Doesn't need the equals.
Sorry.
It's just the ploce, isn't it?
Otherwise and trying to make that equal, the number of.
That's why this in fact, I don't even need the string, but I'll leave it in there anyway.
Just to be sure.
OK, and then we will set our speed equal to speed, whatever it currently is, multiplied by value.
That is equal to the level.
Number one, I'm going to do them and actually divide that by two.
If I don't, what's going to happen is there.
And the music can be moving way too fast, too quickly.
So by the time you get to level three, they're going to be moving at the speed of three biloba, Falcón
moving at a speed of four.
And we've seen how fast the speed of one is.
It's pretty fast.
So it will be too much, basically.
So by dividing, that just makes it a little bit easier to actually kill the enemies and they don't
go so fast.
It also means that level one speed is one way divided, not by two.
So it should be a half speed to begin with.
OK, so let me check the time count down and we're running our time delay coroutine.
So let's find that.
Time delay, time, countdown check for frenemies, check for Gameover, so now and.
We could do this inside the time countdown if level current time is greater than zero.
Well, they want to say now is if a level current time.
Is rate is less than two.
We want to switch on that level achieved.
So I'm going to say Lovullo don't set out to true if I only switch it on right at the last minute,
it's already logged in the see.
By that time.
So you never actually going to see the level up.
That's why I have to do it once you get almost to zero.
You got enough time to actually see this leveling up.
And then once you get to zero, it just basically loads the next level, which is fine.
OK.
And we also need to ensure that as we are leveling up that was set in that level, No.
Two was greater.
So plus plus.
So increment by one.
OK, so let's say now, just so that I can test this to make sure that level number is going to be going
up.
I'm going to take the ground and I'm going to make the level time limit about five seconds again.
We also got a couple of empty slots.
So we need a level of object and we need a level text.
Here we go.
All right.
Press play.
Just make sure that this works.
So we're on number one.
We're on level two of.
We're on level three.
Level up, we're on level four.
Level up one, level five, not that basket and a lot faster.
And the zombies, by the way, are walking at the exact same speed and.
Yeah, that was intentional.
I don't want too many creatures moving too fast.
Check out how quick that bat is now attacking me on two levels, Ben.
OK.
Excellent.
So, yeah, we know that that's working.
So now if I set my time back to 30, that will become much more challenging now.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.