All language subtitles for 31. Resetting the game

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian Download
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:03,950 --> 00:00:09,590 Now, just for testing purposes, I'm going to go back into my script and we're a private float damage 2 00:00:09,590 --> 00:00:11,270 amount zero point five. 3 00:00:11,870 --> 00:00:15,800 Just going to lower this down to like zero point one. 4 00:00:16,660 --> 00:00:18,950 And well, actually, maybe zero point two. 5 00:00:19,460 --> 00:00:19,790 OK. 6 00:00:20,570 --> 00:00:30,140 And then if I save this and I just play through this to ensure that I get up to maybe level two or three. 7 00:00:36,040 --> 00:00:39,340 Shoot Copley's zombies, make sure that they don't tempt me. 8 00:00:53,010 --> 00:00:55,140 And this way, I'll definitely get up to level two. 9 00:01:03,430 --> 00:01:04,870 And we got on level two now. 10 00:01:05,380 --> 00:01:06,460 So it all starts again. 11 00:01:07,930 --> 00:01:09,370 This time I'm going to let them kill me. 12 00:01:25,980 --> 00:01:26,490 Here we go. 13 00:01:26,550 --> 00:01:32,670 OK, Gameover, return to my menu, I go up to level two, I play again. 14 00:01:34,200 --> 00:01:36,000 Notice I'm still on level two. 15 00:01:37,020 --> 00:01:38,850 OK, that's because it's never getting reset. 16 00:01:39,210 --> 00:01:42,120 You'll also notice that the time is actually frozen as well. 17 00:01:42,900 --> 00:01:46,110 So what we need to do, basically, we need to reset things. 18 00:01:46,590 --> 00:01:54,720 So and one of the reasons why time is post is because if game over is equal to true. 19 00:01:55,830 --> 00:01:56,700 Let's take a look. 20 00:01:57,990 --> 00:01:59,370 We're set in time to time. 21 00:01:59,370 --> 00:02:00,840 Scale equals zero. 22 00:02:01,350 --> 00:02:06,180 Now, even though the script may restart, this is an internal function. 23 00:02:06,190 --> 00:02:07,980 Unless you return it back to time. 24 00:02:07,980 --> 00:02:09,360 That time scale equals one. 25 00:02:09,660 --> 00:02:11,250 It will never go back to one. 26 00:02:11,820 --> 00:02:12,240 OK. 27 00:02:12,660 --> 00:02:18,000 So in a menu script, we want to ensure that we are setting it to. 28 00:02:18,030 --> 00:02:20,070 We are setting time back to one. 29 00:02:20,910 --> 00:02:25,980 So I'm simply going to say time to time scale equals one. 30 00:02:26,820 --> 00:02:28,470 So return back to normal. 31 00:02:30,340 --> 00:02:34,920 Say that we also need another public static 32 00:02:38,770 --> 00:02:40,190 of this in Gameover. 33 00:02:41,460 --> 00:02:50,460 Simply call this public static off type bowl called game, and it is equal to false to begin with. 34 00:02:51,180 --> 00:02:56,400 Now, the reason why I'm making it public static so that that will persist no matter how many levels 35 00:02:56,400 --> 00:02:58,470 you answer if you're on level five or still. 36 00:02:58,470 --> 00:03:00,360 No, your game has not ended yet. 37 00:03:01,140 --> 00:03:03,840 But as soon as the game is ended. 38 00:03:06,150 --> 00:03:08,640 It's fine that function check for Gameover. 39 00:03:09,000 --> 00:03:11,760 If that's the case, then we're going to say. 40 00:03:15,860 --> 00:03:21,230 That's gain and that equals truth. 41 00:03:23,120 --> 00:03:26,780 All right, so now it basically recognizes that the game is over. 42 00:03:27,680 --> 00:03:33,950 We also need to ensure that we're changing the level number as well. 43 00:03:34,910 --> 00:03:39,530 Now we're going to do that if game end is equal to false. 44 00:03:40,070 --> 00:03:41,510 We're going to do that in the start. 45 00:03:42,680 --> 00:03:43,130 OK. 46 00:03:43,820 --> 00:03:45,620 Sorry if game ended is equal to true. 47 00:03:46,340 --> 00:03:48,070 We're going to change that in the start. 48 00:03:48,080 --> 00:03:53,060 So I'll leave all of that going up to here. 49 00:03:53,060 --> 00:04:00,290 And I'll say if game ended is equal to true should be equals. 50 00:04:00,290 --> 00:04:01,160 Equals, by the way. 51 00:04:03,500 --> 00:04:14,810 And in that case, we're going to set our at level number to one, and we're going to say game and that 52 00:04:15,860 --> 00:04:19,280 equals false again so that we can begin again. 53 00:04:19,730 --> 00:04:20,090 All right. 54 00:04:21,440 --> 00:04:24,020 So almost like resetting it if you want. 55 00:04:25,040 --> 00:04:26,780 So make sure that's done in the start. 56 00:04:27,200 --> 00:04:30,740 That will then reset that static ball so we can start again. 57 00:04:31,160 --> 00:04:37,580 But if game ended is if if game over is true, that is set to true. 58 00:04:37,850 --> 00:04:40,970 You go back to your main menu still and it's still in the memory. 59 00:04:41,300 --> 00:04:48,400 You play the game and basically it has to run the start again whereby it finds that you your game didn't 60 00:04:49,460 --> 00:04:50,150 find its true. 61 00:04:50,150 --> 00:04:54,590 It's going to reset it back to level one and reset that game ended, but false. 62 00:04:55,940 --> 00:04:58,520 Let's just double check it to make sure that that's the case. 63 00:05:00,940 --> 00:05:04,150 So once again, I'm going to make sure that I survive level one. 64 00:05:08,100 --> 00:05:09,570 Shooting a couple of zombies. 65 00:05:19,710 --> 00:05:22,800 Obviously, it's a lot faster on the phone because you can use to hunt. 66 00:05:30,770 --> 00:05:36,350 You could even have a system whereby you actually gain points for killing each of these just quite easy 67 00:05:36,350 --> 00:05:36,710 to do. 68 00:05:37,190 --> 00:05:40,490 So let's just make sure that they can actually kill me on this level. 69 00:05:56,780 --> 00:05:57,320 There we go. 70 00:05:57,350 --> 00:06:01,820 All right, Gameover, we're on level to return to main menu and press play. 71 00:06:04,020 --> 00:06:05,270 We're still on level two. 72 00:06:05,450 --> 00:06:12,660 So the reason why as an update is because I have not told it to date, and I'll explain why. 73 00:06:12,680 --> 00:06:19,220 So on the start, we've actually called the level text out text equals level plus level number two string 74 00:06:19,490 --> 00:06:22,470 and then only change level number one down here. 75 00:06:22,490 --> 00:06:24,710 So you have to be careful on the ordering. 76 00:06:25,070 --> 00:06:32,390 So if I do control X on there, just below the application target frame rate to control V, I'm calling 77 00:06:32,390 --> 00:06:34,400 it before that command now. 78 00:06:34,700 --> 00:06:37,010 So that should now read level one. 79 00:06:37,550 --> 00:06:37,860 All right. 80 00:06:37,860 --> 00:06:39,110 And feel free to test it out. 81 00:06:39,560 --> 00:06:44,280 You don't want to see me go through that again, but be very careful where you run your commands. 82 00:06:44,310 --> 00:06:44,600 All right. 83 00:06:44,600 --> 00:06:45,980 Because they do run in order. 7182

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.