All language subtitles for 29. Creating the Defeat Screen

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian Download
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,256 --> 00:00:03,840 Let's create a defeat screen or a you died a screen 2 00:00:04,096 --> 00:00:06,656 With the same or similar functionality 3 00:00:06,912 --> 00:00:07,936 Has the Victory 4 00:00:08,448 --> 00:00:12,032 And we're actually going to use the same underlying c 5 00:00:12,544 --> 00:00:13,312 And so 6 00:00:13,568 --> 00:00:15,872 We're going to go ahead and just make it configure 7 00:00:16,128 --> 00:00:20,224 I'm going to go ahead and open up with ctrl shift all the victory screen 8 00:00:20,480 --> 00:00:22,528 And this is going to need to be renamed 9 00:00:22,784 --> 00:00:24,576 So I'm going to go out and do that 10 00:00:24,832 --> 00:00:26,368 I'm gonna search for Victory 11 00:00:26,880 --> 00:00:28,672 Screen in my file system here 12 00:00:28,928 --> 00:00:29,952 I'm going to right click 13 00:00:30,208 --> 00:00:31,232 On the scene 14 00:00:31,488 --> 00:00:32,256 Rename 15 00:00:32,512 --> 00:00:33,024 2 16 00:00:33,280 --> 00:00:34,816 End screen 17 00:00:36,608 --> 00:00:37,120 Instead 18 00:00:37,632 --> 00:00:39,936 Not going to rename the Script file as well 19 00:00:40,192 --> 00:00:42,240 So right click rename 20 00:00:42,496 --> 00:00:44,544 Record is end screen as well 21 00:00:45,824 --> 00:00:51,200 And before you go any further I'm going to run the game and make sure that it's still working as expected 22 00:00:52,480 --> 00:00:52,992 Perfect 23 00:00:54,272 --> 00:00:55,296 Which change this 24 00:00:55,552 --> 00:00:57,600 Victory screen name to end screen 25 00:00:57,856 --> 00:01:00,909 And then let's go ahead and open up our aurena time manager 26 00:01:00,911 --> 00:01:03,771 Subtitled by online-courses.club We compress knowledge for you! 27 00:01:03,772 --> 00:01:04,512 Let's open up at script 28 00:01:04,768 --> 00:01:07,072 Add let's rename this variable 29 00:01:07,328 --> 00:01:11,680 We're going to say rename this victory screen seem to end screen scene 30 00:01:11,936 --> 00:01:15,264 And would change Victory Here in on timer timeout 31 00:01:15,520 --> 00:01:16,288 And here is 32 00:01:18,592 --> 00:01:22,432 Ok so now we've renamed our variable to end screen everywhere 33 00:01:22,688 --> 00:01:24,480 We're going to need to reset 34 00:01:24,736 --> 00:01:26,784 This and screen seen here 35 00:01:27,040 --> 00:01:30,112 In the arena time manager seem so select the root node 36 00:01:30,368 --> 00:01:32,672 I just tried over your end screen into the 37 00:01:33,184 --> 00:01:34,976 Exported variable there 38 00:01:35,232 --> 00:01:38,304 Let's go back door and screen seen and open up the Script 39 00:01:38,560 --> 00:01:40,096 And we just need to set 40 00:01:40,608 --> 00:01:41,120 2 41 00:01:41,632 --> 00:01:44,448 Just basically be reskinned for the defeat case 42 00:01:44,704 --> 00:01:47,520 So let's go out and create a function in here 43 00:01:47,776 --> 00:01:49,312 Functions set defeat 44 00:01:50,336 --> 00:01:53,408 And in here what we need to do is we need to change the value of Evil 45 00:01:53,664 --> 00:01:55,712 So I'm going to rename his labels over here 46 00:01:55,968 --> 00:01:57,504 Recall this title label 47 00:01:59,296 --> 00:02:01,344 Add a second one to 48 00:02:01,600 --> 00:02:02,880 Description label 49 00:02:04,160 --> 00:02:06,976 But I like both of those by holding ctrl and click and boat 50 00:02:07,232 --> 00:02:08,000 Right-click 51 00:02:08,512 --> 00:02:10,816 Then select axis is unique name 52 00:02:11,072 --> 00:02:12,608 And then in our said defeat funk 53 00:02:12,864 --> 00:02:14,400 Let's do dollar sign 54 00:02:14,656 --> 00:02:15,424 Percent 55 00:02:15,936 --> 00:02:16,704 Title label 56 00:02:17,472 --> 00:02:18,496 Dot text 57 00:02:19,008 --> 00:02:20,032 Is equal to 58 00:02:20,288 --> 00:02:20,800 Defeat 59 00:02:21,056 --> 00:02:22,848 In quotes just like so 60 00:02:23,104 --> 00:02:25,920 And then same dollar sign percent 61 00:02:26,176 --> 00:02:27,456 Description label 62 00:02:28,480 --> 00:02:30,528 That text is equal to 63 00:02:30,784 --> 00:02:31,552 You'll 64 00:02:33,344 --> 00:02:38,464 Ok so we need to now show this screen when the player dies 65 00:02:38,720 --> 00:02:40,000 So I'm going to go to my main 66 00:02:40,256 --> 00:02:41,536 In our main doesn't 67 00:02:41,792 --> 00:02:46,912 Have a script on the route now I'm going to go ahead and do that so I'm gonna click the new script button 68 00:02:47,168 --> 00:02:48,192 Create ad script 69 00:02:49,472 --> 00:02:49,984 Song 70 00:02:50,240 --> 00:02:53,312 Ready so I can override that ready method 71 00:02:53,568 --> 00:02:55,360 And in my entities 72 00:02:55,616 --> 00:02:58,176 I'm going to go here and I'm going to right click 73 00:02:58,432 --> 00:02:58,944 The player 74 00:02:59,200 --> 00:03:01,248 And access is unique name as well 75 00:03:01,504 --> 00:03:02,784 What we're going to do 76 00:03:03,040 --> 00:03:04,320 Is we're going to do this 77 00:03:04,576 --> 00:03:06,624 Dollar sign percent player 78 00:03:07,904 --> 00:03:10,208 Now we have the players health compare 79 00:03:10,464 --> 00:03:12,256 Traits of a open up my player script 80 00:03:12,512 --> 00:03:15,072 We have a variable health component here in the player 81 00:03:15,328 --> 00:03:17,632 So if I go back to my main script 82 00:03:17,888 --> 00:03:19,680 I can actually reference that health compare 83 00:03:20,192 --> 00:03:21,984 That means that I can connect to 84 00:03:22,240 --> 00:03:23,520 The tides 85 00:03:23,776 --> 00:03:24,288 So I can 86 00:03:24,544 --> 00:03:26,080 Health components 87 00:03:26,592 --> 00:03:27,360 Dartconnect 88 00:03:27,872 --> 00:03:28,896 On 89 00:03:29,152 --> 00:03:29,664 Play Adele 90 00:03:31,712 --> 00:03:33,760 That function on player died 91 00:03:34,784 --> 00:03:36,064 Ellis my past for now 92 00:03:36,320 --> 00:03:39,136 Because we need to create an export variable appear 93 00:03:39,648 --> 00:03:40,416 For the 94 00:03:41,696 --> 00:03:42,720 So tight end 95 00:03:42,976 --> 00:03:43,488 Screen 96 00:03:44,000 --> 00:03:44,512 Scene 97 00:03:45,024 --> 00:03:46,304 And that sometime Tupac 98 00:03:46,560 --> 00:03:47,072 Seemed 99 00:03:47,840 --> 00:03:49,120 What's click on our main 100 00:03:49,376 --> 00:03:50,656 Root note up here 101 00:03:50,912 --> 00:03:54,240 LS drag over that and screen again into that variable 102 00:03:54,496 --> 00:03:55,520 So that's it 103 00:03:55,776 --> 00:03:59,104 When the player dies we're going to do the same thing you're going to say 104 00:03:59,616 --> 00:04:00,640 Bar and 105 00:04:00,896 --> 00:04:01,920 Stream instance 106 00:04:02,432 --> 00:04:03,456 Is equal to 107 00:04:03,712 --> 00:04:04,736 And screen 108 00:04:04,992 --> 00:04:05,504 Scene 109 00:04:05,760 --> 00:04:06,784 Instantiate 110 00:04:07,296 --> 00:04:08,832 We're going to say add child 111 00:04:10,112 --> 00:04:10,624 Screen 112 00:04:12,160 --> 00:04:13,696 That should basically be it 113 00:04:13,952 --> 00:04:16,256 Go back to my Arena time manager 114 00:04:16,512 --> 00:04:20,607 We already know that this works so I'm going to change the wait time back to 60 seconds 115 00:04:21,119 --> 00:04:23,935 Which we will definitely be increasing for the Fog 116 00:04:24,447 --> 00:04:25,727 Let's go Henry clip play 117 00:04:25,983 --> 00:04:26,751 And see 118 00:04:27,007 --> 00:04:27,775 If we 119 00:04:28,031 --> 00:04:29,567 I did that message when we die 120 00:04:29,823 --> 00:04:31,103 Victory ok so 121 00:04:31,615 --> 00:04:32,383 This is working 122 00:04:32,639 --> 00:04:35,455 We just didn't call the set defeat meth 123 00:04:35,967 --> 00:04:39,295 So let's go ahead and do that in our main script here 124 00:04:39,551 --> 00:04:41,087 And we're just going to say 125 00:04:41,343 --> 00:04:42,623 Aldi egg chair 126 00:04:42,879 --> 00:04:44,159 And screen insta 127 00:04:44,415 --> 00:04:44,927 Start 128 00:04:45,439 --> 00:04:46,207 Set 129 00:04:48,767 --> 00:04:50,047 Ok and is very 130 00:04:50,303 --> 00:04:54,655 We cannot call the set David before it is in the sea 131 00:04:54,911 --> 00:04:55,423 Tree 132 00:04:55,679 --> 00:04:56,191 And 133 00:04:56,447 --> 00:04:58,239 That some generally true 134 00:04:58,495 --> 00:05:02,079 When you're trying to manipulate or get information about 135 00:05:02,591 --> 00:05:04,127 The scene tree 136 00:05:04,383 --> 00:05:06,431 So in our end screen 137 00:05:06,943 --> 00:05:08,223 If I go down the screen 138 00:05:08,735 --> 00:05:10,271 You see that word referencing 139 00:05:10,783 --> 00:05:12,575 Knows that exist in the scene 140 00:05:13,087 --> 00:05:14,879 And a lot of times you'll find that 141 00:05:15,135 --> 00:05:16,159 Just doesn't quite work 142 00:05:16,415 --> 00:05:18,719 Or if you rely on something 143 00:05:18,975 --> 00:05:20,255 Initializing the radio 144 00:05:20,511 --> 00:05:22,303 It's not going to quite work 145 00:05:22,559 --> 00:05:24,351 Unless you are the same 146 00:05:24,607 --> 00:05:25,631 To The Scene 3 147 00:05:26,399 --> 00:05:29,727 And when you add scenes to the same tree at runtime 148 00:05:30,239 --> 00:05:35,359 The ready method essentially gets called in between these two lines Lines 12 and 13 here 149 00:05:35,615 --> 00:05:38,431 So if I call and child and screen instance 150 00:05:38,687 --> 00:05:40,735 That ready method is going to be cold 151 00:05:41,247 --> 00:05:43,039 As part of this and Child 152 00:05:43,295 --> 00:05:49,183 So that means that anything that runs in the ready method for this end screen will be available by the time I run this line 153 00:05:49,439 --> 00:05:53,791 So you have to be a little bit careful about your order of operations if you're getting strange errors 154 00:05:54,047 --> 00:05:58,143 I would double check that you're not trying to do anything scene tree related 155 00:05:58,399 --> 00:05:58,911 With 156 00:05:59,167 --> 00:06:00,959 You're seeing that you're instantiate 157 00:06:01,215 --> 00:06:02,239 Until it's been 158 00:06:03,263 --> 00:06:06,079 There is some stuff you can do before it's been added to the same tree 159 00:06:06,335 --> 00:06:07,871 But you have to be very careful about 160 00:06:08,127 --> 00:06:08,895 What you're trying to do 161 00:06:09,151 --> 00:06:12,223 It's all for good measure let's just give this another shop 162 00:06:12,479 --> 00:06:15,295 We don't really need a test the buttons to make sure that they were 163 00:06:15,807 --> 00:06:18,879 I'm pretty sure that they are going to work cos we tested that with the 164 00:06:19,135 --> 00:06:20,159 Victory screen 165 00:06:21,439 --> 00:06:24,511 I got you last and I'm just gonna rage quit 166 00:06:25,023 --> 00:06:29,375 Alright so we've got a victory and defeat screen in place 10905

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