All language subtitles for 34. Enabling Acquisition of Axe Ability

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,584 With our activity built we need a way of 2 00:00:03,840 --> 00:00:06,912 Giving it to the player as a reward for levelling 3 00:00:07,424 --> 00:00:07,936 So 4 00:00:08,192 --> 00:00:12,800 Let's go out and do that the first thing that we could do is go into our player scene 5 00:00:13,056 --> 00:00:18,688 And you can again open up the scene with control shito inserting play or click into it from 6 00:00:19,200 --> 00:00:20,480 Main scene here 7 00:00:20,736 --> 00:00:23,808 And it's going to delete the Acts of biliary control 8 00:00:24,064 --> 00:00:24,576 From there 9 00:00:24,832 --> 00:00:25,344 Perfect 10 00:00:25,600 --> 00:00:29,184 So now we will that start with the axe ability will need to acquire 11 00:00:29,440 --> 00:00:30,976 Through the level up process 12 00:00:31,488 --> 00:00:32,256 How we going to do 13 00:00:32,768 --> 00:00:35,072 Well if we look at our upgrade 14 00:00:35,328 --> 00:00:35,840 Manager 15 00:00:36,352 --> 00:00:38,656 So go ahead and open up the upgrade manager scene 16 00:00:38,912 --> 00:00:41,472 Click into the script and you can see that what you've got 17 00:00:41,984 --> 00:00:44,032 Upgrade pool right here 18 00:00:44,288 --> 00:00:50,432 And we are choosing an upgrade and passing in to this upgrade screen setup 19 00:00:50,688 --> 00:00:51,200 Body upgrades 20 00:00:52,224 --> 00:00:53,504 So your car there 21 00:00:53,760 --> 00:00:59,904 The upgrade screen will display a number of upgrades essentially referencing ability upgrade which is a Reece 22 00:01:00,123 --> 00:01:02,363 Subtitled by online-courses.club We compress knowledge for you! 23 00:01:02,364 --> 00:01:02,720 What's a custom resource that has a couple of experts 24 00:01:02,976 --> 00:01:08,608 So this is called ability upgrade but I think it makes sense to use this and extended 25 00:01:08,864 --> 00:01:12,960 For new abilities as well so at the end of the day 26 00:01:13,216 --> 00:01:14,752 Everything whether it's 27 00:01:15,008 --> 00:01:20,128 An explicit upgrade for an ability or whether it's a new ability can all be considered ability up 28 00:01:21,152 --> 00:01:23,968 So let's go ahead and create a resource 29 00:01:24,224 --> 00:01:26,272 For the accessibility 30 00:01:26,528 --> 00:01:28,064 I'm going to go into my resource 31 00:01:28,576 --> 00:01:29,856 Directory in my 32 00:01:31,136 --> 00:01:32,928 And then I'm going to go into the upgrade 33 00:01:33,184 --> 00:01:33,696 Answer Direct 34 00:01:33,952 --> 00:01:37,792 And I'm going to take this sword right here I'm going to right click it and then 35 00:01:38,048 --> 00:01:38,560 Duplicate 36 00:01:38,816 --> 00:01:41,120 I'm going to name this asks instead 37 00:01:41,376 --> 00:01:43,680 Now if I double click on the apps you can see the 38 00:01:44,192 --> 00:01:45,472 I've duplicate 39 00:01:45,728 --> 00:01:46,496 Aldi's pop 40 00:01:46,752 --> 00:01:48,800 But we actually don't want that rights 41 00:01:49,056 --> 00:01:51,360 We're gonna replace all day so for the ID 42 00:01:51,616 --> 00:01:52,640 Let's go ahead and right 43 00:01:52,896 --> 00:01:54,688 Just playing Old Axe in there 44 00:01:54,944 --> 00:01:56,480 And then we're going to 45 00:01:56,992 --> 00:01:59,296 Type in a name as actual the capital 46 00:01:59,552 --> 00:02:02,368 And illustrate is short description and it can be whatever you 47 00:02:03,392 --> 00:02:04,928 Hammerite periodically 48 00:02:06,464 --> 00:02:08,768 Sends out a spinning app 49 00:02:10,560 --> 00:02:11,584 Say something like that 50 00:02:11,840 --> 00:02:15,680 And so we can look at her sword and we can see that we are sorted now and we have our 51 00:02:16,192 --> 00:02:21,312 Let's go back to her upgrade manager script by clicking the Script button in the upgrade manager scene 52 00:02:21,568 --> 00:02:27,200 And now we have to choose more than one upgrade from the upgrade pool 53 00:02:27,968 --> 00:02:30,016 Another thing that we have to consider is that 54 00:02:30,272 --> 00:02:32,832 We might have unique upgrades 55 00:02:33,088 --> 00:02:35,136 Or operator can only be chosen ones 56 00:02:35,392 --> 00:02:37,184 So once we choose the accessibility 57 00:02:37,440 --> 00:02:38,976 You probably don't want to be able to 58 00:02:39,232 --> 00:02:39,744 Again 59 00:02:40,000 --> 00:02:41,280 I want more handle that later 60 00:02:41,536 --> 00:02:42,048 Let's go 61 00:02:42,304 --> 00:02:43,584 More than 1 upgrades 62 00:02:43,840 --> 00:02:44,608 Being chosen 63 00:02:44,864 --> 00:02:47,680 A time there was a more immediate problem facing a 64 00:02:47,936 --> 00:02:48,960 And that is that 65 00:02:49,216 --> 00:02:52,288 We don't want the same upgrades to be chosen twice 66 00:02:52,544 --> 00:02:56,640 When we are generating the upgrades to show on the upgrade screen 67 00:02:57,408 --> 00:03:00,480 So what you need to do a bunch of array manipulation here 68 00:03:00,736 --> 00:03:02,784 To get this working the way that we were 69 00:03:03,552 --> 00:03:04,320 So let's do this 70 00:03:04,576 --> 00:03:05,856 Let's create a new function 71 00:03:06,112 --> 00:03:08,672 I'm realising that this is slightly out of order 72 00:03:08,928 --> 00:03:12,000 Compared to our preferred order of function symmetric 73 00:03:12,256 --> 00:03:14,048 Cut this on level up funk 74 00:03:14,560 --> 00:03:16,352 And I'm going to move it to the bar 75 00:03:17,888 --> 00:03:22,240 Because again I personally like to leave all of my signal handler methods 76 00:03:22,496 --> 00:03:23,776 At the bottom of the Script 77 00:03:24,032 --> 00:03:25,056 And everything else 78 00:03:25,312 --> 00:03:26,080 In the middle 79 00:03:26,592 --> 00:03:28,384 Create a new function 80 00:03:28,640 --> 00:03:30,944 Just below the apply upgrade called 81 00:03:31,200 --> 00:03:32,224 Pick up 82 00:03:36,064 --> 00:03:36,832 Here is one minute 83 00:03:37,088 --> 00:03:38,624 Let's do a for Loop 84 00:03:38,880 --> 00:03:39,392 4 85 00:03:39,904 --> 00:03:40,928 I in 86 00:03:41,440 --> 00:03:41,952 2 87 00:03:42,720 --> 00:03:43,488 What is right path 88 00:03:44,000 --> 00:03:45,792 So this is saying working at used to up 89 00:03:46,304 --> 00:03:51,168 Now in order to avoid the situation where we pick two of the same upgrade 90 00:03:51,424 --> 00:03:52,960 What do I need to filter 91 00:03:53,472 --> 00:03:54,496 The array 92 00:03:54,752 --> 00:03:56,800 After every upgrade we choose 93 00:03:57,056 --> 00:03:57,824 So that we 94 00:03:58,080 --> 00:03:59,104 Exclude any other 95 00:03:59,360 --> 00:04:00,128 For the same ID 96 00:04:00,640 --> 00:04:04,480 Create a new variable under pick upgrades and we'll call it bar 97 00:04:05,504 --> 00:04:07,296 Filtered upgrades 98 00:04:08,064 --> 00:04:09,088 Is equal to 99 00:04:09,344 --> 00:04:11,392 And we're going to copy or upgrade 100 00:04:11,648 --> 00:04:12,928 Upgrade pool 101 00:04:13,184 --> 00:04:13,696 Start 102 00:04:16,000 --> 00:04:16,512 Duplo 103 00:04:17,024 --> 00:04:21,631 And so what upgrades Poole duplicated going to do is this Returns a new array 104 00:04:21,887 --> 00:04:23,935 With the same elements inside 105 00:04:24,447 --> 00:04:28,287 In why do we need to do that because when we start filtering this array 106 00:04:28,543 --> 00:04:31,103 We don't want to affect the original upgrade pool 107 00:04:31,615 --> 00:04:34,431 So what you been appealing this filtered upgrades array 108 00:04:34,687 --> 00:04:36,991 And because it is a copy 109 00:04:37,247 --> 00:04:38,783 Therefore a different reference 110 00:04:39,039 --> 00:04:42,879 We're not going to be affecting the original upgrade porter at all 111 00:04:43,135 --> 00:04:46,207 If we don't use this we would actually completely mess up 112 00:04:46,463 --> 00:04:47,487 Are upgrade to 113 00:04:47,999 --> 00:04:48,511 And 114 00:04:48,767 --> 00:04:50,047 It would break a lot of stuff 115 00:04:50,303 --> 00:04:50,815 So 116 00:04:51,071 --> 00:04:53,887 We're grabbing a copy of the Opera jewellery 117 00:04:54,143 --> 00:04:54,911 Call filter 118 00:04:55,167 --> 00:05:01,055 Upgrades and what we're going to do is copy this first couple lines in on mobile 119 00:05:01,311 --> 00:05:03,359 So where were choosing the upgrade 120 00:05:03,615 --> 00:05:04,383 And then checking well 121 00:05:04,639 --> 00:05:06,687 It's no wishes copy all that 122 00:05:06,943 --> 00:05:09,247 Or car trailer soul Control x to cut 123 00:05:09,503 --> 00:05:11,039 Emily does excess layer 124 00:05:11,551 --> 00:05:12,831 Then go ahead and 125 00:05:13,599 --> 00:05:18,719 Paste those lines in a for loop and fix the indentation so one level of indentation 126 00:05:20,511 --> 00:05:22,303 And we actually don't even need 127 00:05:23,327 --> 00:05:25,375 Upgrade eagle Knowles or just going to remove 128 00:05:25,631 --> 00:05:26,143 Dad's 129 00:05:26,655 --> 00:05:31,007 Ok we got this error down here so we're just going to ignore that for now We Are Go 130 00:05:31,263 --> 00:05:32,543 To be handling that 131 00:05:32,799 --> 00:05:33,567 Momentarily 132 00:05:33,823 --> 00:05:37,919 So in here instead of picking from the upgrade pool with an R4 133 00:05:38,175 --> 00:05:40,223 We're going to pick from the filtered upgrades 134 00:05:42,783 --> 00:05:46,111 Ok so now here's where the cracks of what we're doing comes in 135 00:05:46,623 --> 00:05:49,183 So get the Chosen upgrade will do something with this and a little 136 00:05:49,439 --> 00:05:51,231 The first we want to save filtered upgrade 137 00:05:52,511 --> 00:05:53,023 Filter 138 00:05:54,303 --> 00:05:55,071 And we can 139 00:05:55,327 --> 00:06:00,447 Filter and Method using a method we can actually define an inline filter functions we can say 140 00:06:00,959 --> 00:06:01,471 Funk 141 00:06:02,239 --> 00:06:03,007 Upgrade 142 00:06:03,519 --> 00:06:06,079 And then what we want to do is Wendy 143 00:06:06,335 --> 00:06:08,383 Function in here Returns true 144 00:06:08,639 --> 00:06:09,919 That means keep the 145 00:06:10,175 --> 00:06:11,455 So let me backup 146 00:06:11,967 --> 00:06:16,575 Filter will iterate through every single element in this filtered upgrades array 147 00:06:16,831 --> 00:06:19,903 And it will run the supplied function again 148 00:06:20,159 --> 00:06:21,183 Every single 149 00:06:21,439 --> 00:06:23,231 And this is why I upgraded in here 150 00:06:23,487 --> 00:06:23,999 So 151 00:06:24,255 --> 00:06:25,535 For each element in the array 152 00:06:25,791 --> 00:06:27,839 The upgrades being passed into the Senate 153 00:06:28,095 --> 00:06:30,399 Action here and if we return true 154 00:06:30,655 --> 00:06:31,167 Dysfunction 155 00:06:31,423 --> 00:06:31,935 Then 156 00:06:32,191 --> 00:06:35,007 That element gets to stay in the filter upgrade 157 00:06:35,263 --> 00:06:37,055 And if we return false that 158 00:06:37,311 --> 00:06:37,823 Gets filter 159 00:06:38,847 --> 00:06:40,895 So what do you want to do we want to return 160 00:06:41,151 --> 00:06:41,919 Upgrade 161 00:06:42,175 --> 00:06:43,199 I D 162 00:06:43,711 --> 00:06:44,991 Is not equal to 163 00:06:45,247 --> 00:06:46,271 Chosen upgrade 164 00:06:48,575 --> 00:06:50,879 So what is this filter function saying it's saying 165 00:06:51,135 --> 00:06:52,415 Where choose Britain 166 00:06:52,671 --> 00:06:53,951 We're going to take her children up 167 00:06:54,463 --> 00:06:55,743 And we're going to return 168 00:06:55,999 --> 00:06:58,559 Every upgrade in the filter upgrades list 169 00:06:58,815 --> 00:07:02,143 That does not share the idea of the Chosen 170 00:07:02,655 --> 00:07:03,423 In other words 171 00:07:03,679 --> 00:07:05,727 Pick every element that is not 172 00:07:05,983 --> 00:07:07,263 The same as the Chosen 173 00:07:07,775 --> 00:07:11,103 And so there's filtered upgrades this filter 174 00:07:11,615 --> 00:07:13,151 This actually Returns 175 00:07:13,407 --> 00:07:16,991 A new array according to the documentation and if you want to take a look at 176 00:07:17,503 --> 00:07:21,599 What you can do as you can control hold ctrl and click on filter 177 00:07:22,111 --> 00:07:23,647 And that will take your right to the documentation 178 00:07:23,903 --> 00:07:25,951 This is Returns a new array 179 00:07:26,207 --> 00:07:31,839 And since this Returns a new array we have to assign the result 180 00:07:32,351 --> 00:07:33,375 So we're going to say 181 00:07:33,887 --> 00:07:35,167 Filter upgrade 182 00:07:35,423 --> 00:07:36,191 Is equal to 183 00:07:36,447 --> 00:07:37,215 Upgrade 184 00:07:39,007 --> 00:07:45,151 So this filter Returns a new array with all the elements sorted out that we are specifying with this function inside 185 00:07:45,407 --> 00:07:49,759 And then you alright we're just going to overwrite the value of filtered 186 00:07:50,527 --> 00:07:53,855 And so now you can see when it goes to the next iteration in a for Loop 187 00:07:54,111 --> 00:07:56,415 Is noted upgrades now is going to be 188 00:07:56,671 --> 00:07:57,695 Upgrade pool 189 00:07:57,951 --> 00:08:00,767 Essential it's going to be equal to the upgrade Paul - 190 00:08:01,279 --> 00:08:04,351 Whatever upgrade was chosen in the last Italy 191 00:08:04,863 --> 00:08:09,215 And we can extend this out indefinitely assuming that we had enough upgrade right we could say 192 00:08:09,471 --> 00:08:11,775 Do that 100 times and keep whittling down 193 00:08:12,031 --> 00:08:14,591 The filtered upgrades so that we're not picking 194 00:08:14,847 --> 00:08:15,359 Betfred 195 00:08:15,615 --> 00:08:17,663 Ok and then at the end what we can do 196 00:08:17,919 --> 00:08:22,783 Is we have to return our children up right now or not actually keeping track of those anywhere 197 00:08:23,039 --> 00:08:26,623 So what I'm going to do as I'm going to create a new variable via chosen 198 00:08:27,391 --> 00:08:28,159 Upgrades 199 00:08:28,415 --> 00:08:32,255 And then we're going to initialise at when empty array using open and close bracket 200 00:08:32,767 --> 00:08:35,071 So this is an empty array representing art show 201 00:08:35,327 --> 00:08:38,911 Cribs and then what I'm going to do is I'm going to add 202 00:08:39,167 --> 00:08:43,775 That shows in upgrades inside a for loop into that erase so we're going to say chosen 203 00:08:44,031 --> 00:08:45,823 Upgrades plural 204 00:08:46,079 --> 00:08:46,591 A pen 205 00:08:47,103 --> 00:08:47,871 Chosen 206 00:08:48,127 --> 00:08:48,639 Up 207 00:08:50,175 --> 00:08:53,247 So adding each other that we choose and and remover 208 00:08:53,503 --> 00:08:54,783 From the filtered array 209 00:08:55,039 --> 00:08:56,319 And then we can return 210 00:08:56,575 --> 00:08:57,855 The end our chosen 211 00:08:58,367 --> 00:08:58,879 Operates 212 00:09:00,159 --> 00:09:00,671 Perfect 213 00:09:01,183 --> 00:09:02,463 So now what we can do 214 00:09:02,719 --> 00:09:03,999 Is we can 215 00:09:04,511 --> 00:09:06,047 In the on level up function 216 00:09:06,303 --> 00:09:07,839 Underneath the Anne child 217 00:09:08,351 --> 00:09:10,911 Let's go out and save our chosen upgrades 218 00:09:11,423 --> 00:09:12,703 Is he going to pick 219 00:09:13,471 --> 00:09:15,007 Upgrades and will involve that 220 00:09:16,287 --> 00:09:18,847 And then we can replace this array here 221 00:09:19,103 --> 00:09:23,711 The single element inside of a dead no longer exists working to replace that with chose 222 00:09:26,783 --> 00:09:28,063 Open up a new line here 223 00:09:28,319 --> 00:09:31,647 Just to keep the 2 line spacing between each function 224 00:09:31,903 --> 00:09:35,231 And now the final thing to do is in our upgrade manager we have 225 00:09:35,487 --> 00:09:36,255 There's up 226 00:09:36,511 --> 00:09:37,023 Play Paul 227 00:09:37,279 --> 00:09:42,911 Property let's click that array let's increase the element size by one so we have another empty slot 228 00:09:43,167 --> 00:09:45,215 What's bring over the axe into that's 229 00:09:45,727 --> 00:09:49,567 Ok let's Run the game and see if that upgrade the X up 230 00:09:49,823 --> 00:09:50,335 It's present 231 00:09:51,103 --> 00:09:52,639 So I'm just going to go ahead and 232 00:09:52,895 --> 00:09:54,431 Collect one Vial here 233 00:09:54,687 --> 00:09:56,735 Yeah we got a crash and why did we get it 234 00:09:57,247 --> 00:10:00,063 Ok so I think there's a type mismatch here 235 00:10:00,345 --> 00:10:02,376 Subtitled by online-courses.club We compress knowledge for you! 236 00:10:02,377 --> 00:10:03,135 And I think that we can resolve this by going 237 00:10:03,391 --> 00:10:05,183 2 hour pick upgrades function 238 00:10:05,695 --> 00:10:06,463 Dad 239 00:10:06,719 --> 00:10:09,279 Specify type for a chosen upgrade by do 240 00:10:09,791 --> 00:10:11,071 Colwyn array 241 00:10:11,583 --> 00:10:12,351 Ability 242 00:10:15,423 --> 00:10:15,935 Ok 243 00:10:16,191 --> 00:10:19,007 What's going on in Run the game again with that type specified 244 00:10:19,263 --> 00:10:20,543 And see if that 245 00:10:21,311 --> 00:10:26,943 Ok so after adding that type we now have it working and you can see that I've got the axe 246 00:10:27,455 --> 00:10:28,479 Specified here 247 00:10:28,735 --> 00:10:33,343 Alongside the sword quickest and those are the only two arrays or those are the only two upgrades are there we have 248 00:10:33,599 --> 00:10:34,879 I'm going to go home quickly 249 00:10:35,647 --> 00:10:38,719 And nothing's going to happen why because we haven't actually built 250 00:10:38,975 --> 00:10:39,487 Any code 251 00:10:39,743 --> 00:10:40,767 Handling 252 00:10:41,279 --> 00:10:42,303 The axe 253 00:10:42,559 --> 00:10:46,399 The way that were going to handle adding that ability to the play 254 00:10:46,911 --> 00:10:50,239 Is we're going to extend our ability upgrade 255 00:10:50,751 --> 00:10:51,775 Script oh little 256 00:10:52,287 --> 00:10:56,639 So there's a couple of ways you can do this I'm going to show you how you can use 257 00:10:56,895 --> 00:10:57,919 Inheritance 258 00:10:58,431 --> 00:10:58,943 2 259 00:10:59,199 --> 00:11:00,223 Create a set 260 00:11:00,479 --> 00:11:00,991 Resource 261 00:11:01,503 --> 00:11:03,039 That has one additional Prague 262 00:11:03,551 --> 00:11:04,575 So let's 263 00:11:05,087 --> 00:11:06,879 Create a new script 264 00:11:07,135 --> 00:11:09,439 In our filesystemresource 265 00:11:09,695 --> 00:11:10,207 Upgrade 266 00:11:10,719 --> 00:11:11,231 Older 267 00:11:11,487 --> 00:11:12,767 So right alongside 268 00:11:13,023 --> 00:11:14,303 These upgrades 269 00:11:14,559 --> 00:11:16,095 And let's create a new 270 00:11:16,607 --> 00:11:17,119 Skip 271 00:11:17,375 --> 00:11:18,655 Unless just call 272 00:11:21,215 --> 00:11:25,567 What does call ability simply perhaps that's not the best name boulders called ability dungeon 273 00:11:26,079 --> 00:11:28,895 And what we're going to do is really have this extend 274 00:11:29,151 --> 00:11:30,687 Ability upgrades 275 00:11:31,199 --> 00:11:32,991 So I can I replace it stands with a bill 276 00:11:33,247 --> 00:11:33,759 Upgrade up 277 00:11:34,271 --> 00:11:36,319 And then we're going to add another export variable 278 00:11:36,831 --> 00:11:39,135 And we're gonna save our ability 279 00:11:39,391 --> 00:11:40,927 Controller scene 280 00:11:41,695 --> 00:11:42,975 Type packs 281 00:11:44,511 --> 00:11:45,279 So now it's 282 00:11:45,535 --> 00:11:48,351 Double click RX vs here 283 00:11:48,607 --> 00:11:52,447 And we have it set to use the ability upgrade GD 284 00:11:52,703 --> 00:11:55,263 Alexis Ted wragg the ability over instead 285 00:11:56,287 --> 00:11:57,567 And look what happened 286 00:11:58,079 --> 00:11:59,871 So we get all the property 287 00:12:00,383 --> 00:12:02,431 That are specified in a built-up 288 00:12:02,687 --> 00:12:04,223 Alongside 289 00:12:04,479 --> 00:12:06,015 The new property that we 290 00:12:06,527 --> 00:12:07,295 Specify 291 00:12:07,551 --> 00:12:08,063 Here 292 00:12:08,319 --> 00:12:12,415 And I'm going to give us a class name as well someone is a class underscore the name 293 00:12:12,927 --> 00:12:13,439 Ability 294 00:12:14,719 --> 00:12:15,999 Ok so 295 00:12:16,255 --> 00:12:17,535 Nrx 296 00:12:17,791 --> 00:12:19,071 Trys 297 00:12:19,327 --> 00:12:20,863 Let's go ahead and drive 298 00:12:21,119 --> 00:12:21,631 Over 299 00:12:21,887 --> 00:12:22,911 The act 300 00:12:23,167 --> 00:12:23,679 Control 301 00:12:24,703 --> 00:12:26,751 Let's search for file system X 302 00:12:27,007 --> 00:12:29,055 We got the ability controller here 303 00:12:29,311 --> 00:12:31,359 So I'm just going to drag it over and put it right 304 00:12:31,871 --> 00:12:33,407 So now able to Oasis 305 00:12:34,175 --> 00:12:37,503 The actual scene that gives the player this ability 306 00:12:38,015 --> 00:12:39,039 With this resource 307 00:12:39,551 --> 00:12:41,087 So how is this going to work there 308 00:12:41,343 --> 00:12:41,855 Well 309 00:12:42,111 --> 00:12:43,391 We're gonna go work player 310 00:12:44,927 --> 00:12:46,975 And we have our ability manner 311 00:12:47,231 --> 00:12:47,743 Here 312 00:12:47,999 --> 00:12:49,535 So I'm going to 313 00:12:49,791 --> 00:12:51,071 Open up a play script 314 00:12:53,375 --> 00:12:58,239 Let's grab a reference to that ability manager notes I'm going to do another on read 315 00:12:58,751 --> 00:12:59,263 Bar 316 00:12:59,519 --> 00:13:00,287 Ability 317 00:13:00,543 --> 00:13:01,055 Manager 318 00:13:01,567 --> 00:13:02,335 Is equal to 319 00:13:02,591 --> 00:13:03,359 Dollar sign 320 00:13:03,871 --> 00:13:04,895 Ability manager 321 00:13:06,175 --> 00:13:09,759 And this is not actually an appropriate name for the Snowdon 322 00:13:10,271 --> 00:13:15,391 I was originally envisioning at this would be a separate note eventually but I think it'll just meant to be a part of the playlist 323 00:13:15,647 --> 00:13:17,695 I'm going to rename this note here 324 00:13:17,951 --> 00:13:19,743 Two abilities instead 325 00:13:20,255 --> 00:13:21,279 And then update 326 00:13:21,535 --> 00:13:22,047 This 327 00:13:22,303 --> 00:13:23,327 To ability 328 00:13:23,839 --> 00:13:24,351 And she 329 00:13:24,607 --> 00:13:25,119 This 330 00:13:26,143 --> 00:13:26,655 As well 331 00:13:27,679 --> 00:13:29,727 So just got everything renamed there 332 00:13:29,983 --> 00:13:30,751 No big deal 333 00:13:31,007 --> 00:13:34,079 So now remember we have a global game event 334 00:13:34,591 --> 00:13:35,359 That is 335 00:13:36,639 --> 00:13:37,151 When 336 00:13:37,407 --> 00:13:38,687 An upgrade is charged 337 00:13:39,199 --> 00:13:42,271 And if you need a refresher we can open up the game event 338 00:13:42,527 --> 00:13:43,039 Scene 339 00:13:43,295 --> 00:13:46,879 And see right here we've got signal ability upgrades added 340 00:13:47,135 --> 00:13:50,463 And that passing in the ability upgrade as well as the current upgrade 341 00:13:50,719 --> 00:13:51,231 Diction 342 00:13:51,487 --> 00:13:53,279 Which tells us what quantity 343 00:13:54,559 --> 00:13:56,607 So if I go back to my place 344 00:13:56,863 --> 00:13:58,143 I can in the ready 345 00:13:58,399 --> 00:13:59,167 Connect to 346 00:13:59,679 --> 00:14:00,191 So 347 00:14:00,447 --> 00:14:02,495 Just above the update help display 348 00:14:02,751 --> 00:14:04,031 Invocation here 349 00:14:04,287 --> 00:14:06,335 I'm going to see a game event 350 00:14:06,591 --> 00:14:07,103 Dart 351 00:14:07,359 --> 00:14:09,151 Ability upgrades 352 00:14:09,407 --> 00:14:10,175 Dartconnect 353 00:14:10,943 --> 00:14:12,735 And I'm going to call this on 354 00:14:12,991 --> 00:14:14,783 Ability upgrades 355 00:14:16,831 --> 00:14:18,623 Let's go down and edit the very bad 356 00:14:19,135 --> 00:14:21,695 Bank on ability upgrades 357 00:14:22,975 --> 00:14:24,767 And we have our ability upgrade 358 00:14:26,047 --> 00:14:28,095 Which is of type ability upgrades 359 00:14:28,607 --> 00:14:30,655 And then we have our current upgrades 360 00:14:30,911 --> 00:14:32,191 Which is of type diction 361 00:14:32,703 --> 00:14:34,239 No probably not gonna use 362 00:14:34,751 --> 00:14:36,543 The current upgrades at all 363 00:14:36,799 --> 00:14:40,383 But that's fine we still need to specify it so the single emission works proper 364 00:14:40,895 --> 00:14:44,735 And so what we going to do well it's very simple so recall that 365 00:14:44,991 --> 00:14:46,015 If I go back 366 00:14:46,271 --> 00:14:48,575 To my ex that trys 367 00:14:49,087 --> 00:14:51,903 So because of the inheritance that's happening 368 00:14:52,415 --> 00:14:54,207 In this script disability 369 00:14:54,719 --> 00:14:57,279 My accent trys resource 370 00:14:57,535 --> 00:14:58,047 Is 371 00:14:58,303 --> 00:15:02,143 Type ability upgrades and ability at the same time 372 00:15:02,655 --> 00:15:03,679 It's both of those 373 00:15:04,191 --> 00:15:06,495 Ability is the more specific version 374 00:15:06,751 --> 00:15:07,775 Better to use ing 375 00:15:08,031 --> 00:15:10,079 But it also shares all the properties and 376 00:15:10,335 --> 00:15:11,103 Turn off the ability up 377 00:15:11,615 --> 00:15:13,663 So something really cool that we can do 378 00:15:13,919 --> 00:15:14,943 Is if I go back 379 00:15:15,199 --> 00:15:15,711 Clearscore 380 00:15:15,967 --> 00:15:19,807 I can check if this ability upgrade is and a bill 381 00:15:20,319 --> 00:15:21,599 So I can say if 382 00:15:21,855 --> 00:15:23,135 Ability upgrades 383 00:15:24,671 --> 00:15:25,439 Is 384 00:15:25,695 --> 00:15:26,463 Ability 385 00:15:27,999 --> 00:15:31,583 And that means that I have a new ability and that 386 00:15:31,839 --> 00:15:35,423 Property that we expose the disability controller seem proper 387 00:15:35,679 --> 00:15:37,215 I will be available to 388 00:15:37,727 --> 00:15:38,751 Right so 389 00:15:39,007 --> 00:15:40,799 I'm actually going to invade this and 390 00:15:41,055 --> 00:15:43,871 If not ability upgrade is ability to let me know 391 00:15:44,127 --> 00:15:45,407 It's just a normal ability 392 00:15:45,663 --> 00:15:46,431 I'm going to return 393 00:15:46,687 --> 00:15:49,759 So let me know don't do anything there's nothing I can do with 394 00:15:50,271 --> 00:15:51,551 With disability badge 395 00:15:52,063 --> 00:15:56,671 Since I know that this is now if it makes a pass the statement it's now going to be a type of 396 00:15:57,695 --> 00:15:59,743 Then I can simply say ok 397 00:15:59,999 --> 00:16:04,095 We're going to take this abilities note that we grab a reference to 398 00:16:04,351 --> 00:16:06,143 And then we're going to add child 399 00:16:07,423 --> 00:16:08,191 Ability 400 00:16:08,959 --> 00:16:09,727 Upgrade 401 00:16:09,983 --> 00:16:10,495 Start 402 00:16:10,751 --> 00:16:12,543 And this is called the ability 403 00:16:12,799 --> 00:16:13,823 Controller 404 00:16:14,079 --> 00:16:14,591 Seemed 405 00:16:14,847 --> 00:16:19,199 And if this until Santa is not popping up with this autocomplete is not popping up 406 00:16:19,455 --> 00:16:23,295 Then what we can do as we can say ability 407 00:16:23,551 --> 00:16:25,599 Is equal to ability upgrades 408 00:16:25,855 --> 00:16:27,135 As able 409 00:16:28,159 --> 00:16:30,719 And now when I reference ability in here 410 00:16:30,975 --> 00:16:35,327 I can now reference that ability controller seeing in my suggestions 411 00:16:35,839 --> 00:16:36,863 And then we're going to call 412 00:16:37,119 --> 00:16:39,167 Dart instantiation on 413 00:16:39,679 --> 00:16:40,191 Excel 414 00:16:41,983 --> 00:16:48,127 And so what were you saying is if the type of upgrade coming in from that's from a global signal 415 00:16:48,383 --> 00:16:49,663 Is of type of Bill 416 00:16:49,919 --> 00:16:52,991 Then I'm going to go ahead and and we're gonna instantiated 417 00:16:53,247 --> 00:16:55,551 And then another instance as a child to our ability 418 00:16:56,063 --> 00:16:57,855 And save all went well 419 00:16:58,111 --> 00:17:01,183 We should be able to pick the axe and then have it start working 420 00:17:02,463 --> 00:17:03,487 Tails reacts 421 00:17:05,791 --> 00:17:06,815 And there goes 422 00:17:08,095 --> 00:17:10,143 So that's how we add 423 00:17:10,399 --> 00:17:13,215 Abilities 2-hour upgrade options 28610

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