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:06,400
We have a couple more things to do to get our meta progression upgrades working properly so we need
2
00:00:06,656 --> 00:00:07,168
Add a cow
3
00:00:07,424 --> 00:00:08,960
To the upgrade card
4
00:00:09,216 --> 00:00:12,032
I've how many times you've acquired to upgrade
5
00:00:12,288 --> 00:00:18,432
We need add a button to go to that upgrade screen from the main menu and we need to
6
00:00:18,944 --> 00:00:25,088
Probably drop the player into the upgrade screen after either winning or losing
7
00:00:25,344 --> 00:00:25,856
So
8
00:00:26,112 --> 00:00:27,648
Let's get all of that done
9
00:00:27,904 --> 00:00:29,184
In this lesson
10
00:00:29,440 --> 00:00:33,536
The first thing I'm going to do is let go ahead and go to Armada upgrade card
11
00:00:35,072 --> 00:00:36,096
Open up that scene
12
00:00:36,352 --> 00:00:39,424
How many to find a place to put the count
13
00:00:39,680 --> 00:00:41,472
And I think what we can do is this
14
00:00:41,728 --> 00:00:43,520
Progress label right here
15
00:00:43,776 --> 00:00:47,360
Let's change it so that way it is horizontally online
16
00:00:47,616 --> 00:00:48,128
To the la
17
00:00:48,896 --> 00:00:52,480
And then let's create an H box container under
18
00:00:52,736 --> 00:00:54,016
TV box container
19
00:00:55,296 --> 00:00:57,600
And make that the first child and then
20
00:00:58,112 --> 00:01:00,781
Put the private label as a child of the age box contain
21
00:01:00,783 --> 00:01:03,259
Subtitled by
online-courses.club
We compress knowledge for you!
22
00:01:03,260 --> 00:01:02,464
Ok
23
00:01:02,720 --> 00:01:03,488
And then
24
00:01:03,744 --> 00:01:07,328
Let's Create another label underneath that aid box contain
25
00:01:07,584 --> 00:01:09,632
And we'll call this the
26
00:01:10,656 --> 00:01:11,680
Counter label
27
00:01:12,704 --> 00:01:13,472
Right-click
28
00:01:14,240 --> 00:01:15,264
Quick access
29
00:01:15,520 --> 00:01:16,800
Unique c names
30
00:01:17,056 --> 00:01:18,848
And we want to
31
00:01:19,616 --> 00:01:20,640
Put something like
32
00:01:21,152 --> 00:01:23,456
X0 in there or something
33
00:01:23,968 --> 00:01:28,064
And let's change the theme type variation on this count labour
34
00:01:28,576 --> 00:01:30,112
Two blue outline logo
35
00:01:31,392 --> 00:01:35,744
So we want discount label to appear at the end of the 8th box contain
36
00:01:36,000 --> 00:01:37,536
So select account label
37
00:01:37,792 --> 00:01:40,864
And scroll to the container sizing which is
38
00:01:41,376 --> 00:01:43,936
Just before Midway down the list
39
00:01:44,192 --> 00:01:48,032
And change the horizontal container sizing to shrink and
40
00:01:48,800 --> 00:01:50,592
And then make sure to click expand
41
00:01:51,616 --> 00:01:53,152
So this is a little bit confusing
42
00:01:53,408 --> 00:01:54,688
You would expect
43
00:01:54,944 --> 00:01:58,016
And to make it go to the end of the 8 box container
44
00:01:58,272 --> 00:02:00,576
Because that's the full width of the Xbox
45
00:02:00,832 --> 00:02:01,344
But
46
00:02:01,600 --> 00:02:02,624
The problem is that
47
00:02:02,880 --> 00:02:06,720
Gearbox container aligns items one right after another
48
00:02:07,232 --> 00:02:09,280
And so it can't do that
49
00:02:09,792 --> 00:02:10,304
But
50
00:02:10,816 --> 00:02:13,376
By clicking accept and essentially what you're saying is
51
00:02:13,632 --> 00:02:15,424
I want this label
52
00:02:15,680 --> 00:02:18,752
To take up the rest of the space within the 8 box container
53
00:02:19,264 --> 00:02:22,336
And then because it's taking up all the rest of that space
54
00:02:22,848 --> 00:02:23,872
It can be play
55
00:02:24,128 --> 00:02:25,152
At the end song
56
00:02:25,408 --> 00:02:28,224
Really this label is basically being told
57
00:02:28,480 --> 00:02:33,088
To take out the remaining space in the age box container and then we can align it over to the right
58
00:02:33,600 --> 00:02:36,928
The other option you have is you can change this horizontal
59
00:02:37,184 --> 00:02:39,488
Sizing to fill and expand
60
00:02:39,744 --> 00:02:41,536
So if you have full set
61
00:02:42,048 --> 00:02:43,072
And then click expand
62
00:02:43,328 --> 00:02:45,632
That tells us to go to the end of the container
63
00:02:45,888 --> 00:02:49,984
Then you can go up to the text and you can change the horizontal alignment to right
64
00:02:50,240 --> 00:02:56,384
So I'll leave it like that so I've sent it to fill with expand and horizontal alignment right but if you have the other way the initial
65
00:02:56,640 --> 00:02:59,200
I showed you that is perfectly fine as well
66
00:02:59,456 --> 00:03:01,504
Let's go to the murder of Greg card here
67
00:03:01,760 --> 00:03:07,136
And we got this update progress function now we're going to also at into here
68
00:03:08,672 --> 00:03:10,976
Line of code that would change the text
69
00:03:11,744 --> 00:03:14,816
That shows appear based on how many of that upgrades that we have
70
00:03:15,328 --> 00:03:16,608
Jonas update progress
71
00:03:16,864 --> 00:03:20,192
I'm going to get reference first to the counter label at the top
72
00:03:20,448 --> 00:03:23,008
So drag it over hold control and drop
73
00:03:23,520 --> 00:03:25,312
So now I've got an account level
74
00:03:26,080 --> 00:03:26,848
And
75
00:03:27,616 --> 00:03:30,176
Update progress I'm going to say counter label
76
00:03:30,688 --> 00:03:31,200
Start
77
00:03:31,712 --> 00:03:33,248
Text is equal to
78
00:03:33,504 --> 00:03:37,344
No I'm going to use string formatting again we used it once before
79
00:03:37,600 --> 00:03:41,440
And again I will link the docs to string format
80
00:03:41,696 --> 00:03:47,840
In a way that string formatting works is essentially you take one of the placeholder format options in Ark
81
00:03:48,096 --> 00:03:49,120
We want to do an integer
82
00:03:49,376 --> 00:03:50,144
So we do this
83
00:03:50,400 --> 00:03:51,936
We can do x
84
00:03:52,448 --> 00:03:54,752
This is not part of the string format but this
85
00:03:55,264 --> 00:03:56,288
Percentage
86
00:03:57,056 --> 00:03:58,336
So why am I pulling
87
00:03:58,848 --> 00:04:00,640
X is because that's
88
00:04:00,896 --> 00:04:04,480
The indicator that's the number of times we have this up
89
00:04:04,736 --> 00:04:05,760
So the axis
90
00:04:06,272 --> 00:04:07,040
The X-ray
91
00:04:07,296 --> 00:04:08,832
So there's nothing special about The xx
92
00:04:09,344 --> 00:04:09,856
However
93
00:04:10,112 --> 00:04:13,696
This present d represents a placeholder and what that says is
94
00:04:14,464 --> 00:04:20,351
Whenever the first argument we provide as the string formatting argument should be formatted as an integer
95
00:04:21,375 --> 00:04:24,959
The way we do that is outside of the string we do a percent
96
00:04:25,215 --> 00:04:27,519
And then we need to grab an integer
97
00:04:28,031 --> 00:04:29,311
Any integer we need
98
00:04:29,567 --> 00:04:31,615
Is in a meadow progression saved
99
00:04:32,127 --> 00:04:35,199
So I'm going to copy this meta progression save data
100
00:04:35,455 --> 00:04:35,967
Put it there
101
00:04:36,479 --> 00:04:38,783
And then let's take a look at this evening
102
00:04:39,295 --> 00:04:43,903
Ok so we need the key metre upgrades and then upgrade ID and in Quant
103
00:04:44,671 --> 00:04:46,207
So that's what we're looking for
104
00:04:47,231 --> 00:04:47,743
So
105
00:04:47,999 --> 00:04:50,815
Let's keep that metal upgrades like sell
106
00:04:51,583 --> 00:04:52,095
Then
107
00:04:52,351 --> 00:04:56,191
We want a person the operator ID remember we have upgrades stored up here
108
00:04:57,727 --> 00:04:59,007
And then we want to read
109
00:04:59,263 --> 00:04:59,775
Quantity
110
00:05:00,799 --> 00:05:03,103
So this is an integer right
111
00:05:03,871 --> 00:05:07,455
Working in the quantity of the upgrades that this card represent
112
00:05:07,967 --> 00:05:10,015
This is an integer this one line
113
00:05:10,527 --> 00:05:13,087
Percent tells it ok replace
114
00:05:13,343 --> 00:05:14,367
The string format
115
00:05:14,623 --> 00:05:15,903
Directives in here
116
00:05:16,159 --> 00:05:16,927
Or placeholder
117
00:05:17,439 --> 00:05:17,951
With
118
00:05:18,463 --> 00:05:21,535
The integer here so this present d will be replaced
119
00:05:22,047 --> 00:05:22,815
That integer
120
00:05:23,583 --> 00:05:25,887
The string formatting can get very complicated
121
00:05:26,143 --> 00:05:27,423
And a little bit confusing
122
00:05:27,679 --> 00:05:30,495
Definitely recommend that you take a look at the docks that I've
123
00:05:31,519 --> 00:05:34,591
Ok so now let's open up our Meadow menu
124
00:05:35,359 --> 00:05:39,199
Go to the team let's go ahead and run the current scene so we're on the menu
125
00:05:39,711 --> 00:05:40,735
Did you see that
126
00:05:41,247 --> 00:05:42,527
Depending on how many times you
127
00:05:42,783 --> 00:05:43,551
The purchase button
128
00:05:43,807 --> 00:05:45,855
This now shows up as
129
00:05:46,367 --> 00:05:48,671
X 9 in my case
130
00:05:48,927 --> 00:05:51,487
This will probably be more than 0 in your case
131
00:05:51,743 --> 00:05:53,535
Ok so now that we've got done
132
00:05:53,791 --> 00:05:56,095
Let's do one other thing real quick
133
00:05:56,351 --> 00:05:58,655
And it's one thing that I don't want to over
134
00:05:59,167 --> 00:06:05,311
And that is we don't want the purchase button to be enabled if we already have them
135
00:06:06,591 --> 00:06:07,103
Right
136
00:06:07,359 --> 00:06:10,175
So let's grab this quantity here
137
00:06:10,431 --> 00:06:11,711
And I'm going to
138
00:06:11,967 --> 00:06:15,551
Store that is a variable laptops and use a current quantity
139
00:06:16,319 --> 00:06:17,087
Is it go to that
140
00:06:17,855 --> 00:06:19,647
Let's replace this line
141
00:06:19,903 --> 00:06:20,671
Crank wanted
142
00:06:23,487 --> 00:06:27,327
And now we need to set our progress button disabled if percent is less than 1
143
00:06:27,583 --> 00:06:28,351
Or
144
00:06:28,607 --> 00:06:29,119
So
145
00:06:29,887 --> 00:06:31,167
Double pipes here for us
146
00:06:31,679 --> 00:06:32,959
Current quantity
147
00:06:33,215 --> 00:06:35,519
Is equal to with double eagle
148
00:06:36,031 --> 00:06:37,311
Upgrade dart
149
00:06:37,823 --> 00:06:38,591
Max
150
00:06:39,871 --> 00:06:45,759
And we're going to change the purchase button text as well if the upgrade is at the max quantity so
151
00:06:46,527 --> 00:06:49,599
I'm going to create a new variable up here called is
152
00:06:50,111 --> 00:06:50,879
Max
153
00:06:51,135 --> 00:06:52,159
What score is man
154
00:06:52,415 --> 00:06:52,927
Like that
155
00:06:53,183 --> 00:06:56,255
And then I'm going to copy this current quantity is equal to
156
00:06:56,511 --> 00:06:58,303
Operate Max quantity likes
157
00:06:59,071 --> 00:07:01,375
And I'm going to replace that line with is mass
158
00:07:02,399 --> 00:07:02,911
Ok
159
00:07:03,167 --> 00:07:04,447
And then we'll say
160
00:07:04,703 --> 00:07:05,727
Is Max
161
00:07:06,751 --> 00:07:07,775
Purchase button
162
00:07:08,031 --> 00:07:09,055
Text
163
00:07:09,311 --> 00:07:10,335
Is equal to
164
00:07:11,615 --> 00:07:14,687
What's the same Max if you think of better word to put there
165
00:07:14,943 --> 00:07:15,455
That's fine
166
00:07:15,711 --> 00:07:18,015
What does set it to Max right there
167
00:07:18,271 --> 00:07:20,319
So that should handle that case
168
00:07:21,087 --> 00:07:23,135
You could even instead of doing
169
00:07:23,391 --> 00:07:24,927
Current quantity is equal to
170
00:07:25,183 --> 00:07:26,207
You can do
171
00:07:26,463 --> 00:07:28,511
Greater than or equal to excel
172
00:07:29,023 --> 00:07:30,559
And just that means that
173
00:07:30,815 --> 00:07:35,167
If we run the menu now I should see that button says Max yeah
174
00:07:35,423 --> 00:07:37,471
Alright so that's great
175
00:07:37,983 --> 00:07:41,823
And there is one other bug that you will not encounter until
176
00:07:42,079 --> 00:07:45,151
You delete your save file so if I go to my
177
00:07:45,919 --> 00:07:49,759
And then open user data folder and I delete this game that save
178
00:07:50,271 --> 00:07:52,831
What will happen if I go into the upgrade section
179
00:07:53,343 --> 00:07:54,111
It will crash
180
00:07:54,623 --> 00:07:56,415
And the reason it all crashes because
181
00:07:56,671 --> 00:07:57,695
The Mena progression
182
00:07:57,951 --> 00:07:59,231
Will not contain
183
00:07:59,487 --> 00:08:01,023
Key upgrade ID
184
00:08:01,279 --> 00:08:03,583
So we need to change this slightly
185
00:08:04,095 --> 00:08:06,143
So let's set the current one to d20
186
00:08:06,399 --> 00:08:09,215
And I need to say if meta progression
187
00:08:09,471 --> 00:08:10,751
Save data
188
00:08:11,775 --> 00:08:13,055
Has
189
00:08:13,823 --> 00:08:15,359
Upgrade ID
190
00:08:15,615 --> 00:08:16,895
Ananda l quantity
191
00:08:18,431 --> 00:08:22,015
So just like so if my progression dad save data
192
00:08:22,271 --> 00:08:23,039
Mirror upgrades
193
00:08:23,551 --> 00:08:25,087
Has opera lady
194
00:08:25,855 --> 00:08:26,367
Then
195
00:08:26,623 --> 00:08:28,159
We're going to say our current
196
00:08:28,671 --> 00:08:29,951
Quality is equal to
197
00:08:30,463 --> 00:08:30,975
That
198
00:08:31,231 --> 00:08:31,743
Right
199
00:08:31,999 --> 00:08:35,327
So we first need to check it for safety purposes
200
00:08:35,583 --> 00:08:40,191
And then we can reassign our current quantity so now if you click play and going to upgrade
201
00:08:40,447 --> 00:08:41,983
You should see that it's 0
202
00:08:42,239 --> 00:08:46,335
And so now if you delete your save data it should be fine so if I run this
203
00:08:46,591 --> 00:08:47,871
I'm going to upgrades
204
00:08:48,639 --> 00:08:49,663
It'll be
205
00:08:50,943 --> 00:08:52,223
Now the next thing we need to do
206
00:08:52,479 --> 00:08:55,551
Is we need to add a button to take us to the menu
207
00:08:55,807 --> 00:08:56,575
From the main
208
00:08:56,831 --> 00:08:58,623
So let's go to our main menu scene
209
00:08:58,879 --> 00:09:01,439
And let's open up that Martin contain
210
00:09:01,951 --> 00:09:04,255
Let's duplicate the play button with controlled d
211
00:09:04,511 --> 00:09:06,303
Let's call this metal button
212
00:09:08,607 --> 00:09:09,887
Then let's call this
213
00:09:10,399 --> 00:09:11,167
Upgrades
214
00:09:12,191 --> 00:09:12,703
Like so
215
00:09:13,215 --> 00:09:17,567
And we can rename this to upgrade button just to be consistent so also upgrades
216
00:09:18,335 --> 00:09:21,407
Then let's go ahead and open up our main manuscript
217
00:09:21,919 --> 00:09:24,735
And let's just copy this play button line
218
00:09:25,503 --> 00:09:26,527
Stabilo
219
00:09:27,039 --> 00:09:27,807
Rename
220
00:09:28,319 --> 00:09:32,159
Play to upgrades like so and then on upgrades
221
00:09:32,927 --> 00:09:34,975
Let's copy be on play Press
222
00:09:35,231 --> 00:09:35,743
Function
223
00:09:35,999 --> 00:09:37,535
And paste it underneath
224
00:09:38,815 --> 00:09:39,583
Ok and
225
00:09:40,095 --> 00:09:41,887
We want to call this on upgrades
226
00:09:42,655 --> 00:09:44,191
And then we want to go to
227
00:09:44,703 --> 00:09:46,495
Our race scenes
228
00:09:48,031 --> 00:09:49,823
And I'm going to search for murder men
229
00:09:51,103 --> 00:09:53,919
Again you can just start typing meta menu
230
00:09:54,175 --> 00:09:55,455
Doesn't matter if your
231
00:09:55,711 --> 00:09:59,295
Not referencing the exact path because good or will suggest a path for you
232
00:09:59,551 --> 00:10:01,228
And then you need a clicker enter with that selector
233
00:10:01,229 --> 00:10:03,400
Subtitled by
online-courses.club
We compress knowledge for you!
234
00:10:03,401 --> 00:10:04,159
And that will take us to the menu
235
00:10:04,415 --> 00:10:10,559
I'm going to run this I'm going to collect upgrades and we are in the main menu now you'll notice that there is no
236
00:10:10,815 --> 00:10:11,583
Play to go back
237
00:10:11,839 --> 00:10:13,119
From this screen
238
00:10:13,631 --> 00:10:15,167
So let's go to our menu
239
00:10:15,423 --> 00:10:16,447
And are back
240
00:10:17,471 --> 00:10:19,775
I'm just going to in the grid container here
241
00:10:20,031 --> 00:10:21,055
Instantiate
242
00:10:21,311 --> 00:10:24,127
Metre upgrade card I made up in 3 of those
243
00:10:24,639 --> 00:10:25,151
And
244
00:10:25,407 --> 00:10:26,175
Let's do this
245
00:10:26,687 --> 00:10:29,503
This is actually really useful to have for testing purposes
246
00:10:30,015 --> 00:10:30,527
So
247
00:10:31,039 --> 00:10:32,319
Let's do the follow
248
00:10:32,831 --> 00:10:34,879
Let's open up our menu script here
249
00:10:36,159 --> 00:10:37,951
In the ready function let's do this
250
00:10:39,231 --> 00:10:40,511
Child in
251
00:10:42,047 --> 00:10:43,839
Container dart get children
252
00:10:44,351 --> 00:10:45,631
So this is how you can
253
00:10:46,399 --> 00:10:50,495
The entire array of children of the grid container so that overturned all of these
254
00:10:50,751 --> 00:10:51,519
Metre upgrade
255
00:10:52,287 --> 00:10:54,591
Simply save child
256
00:10:55,359 --> 00:11:01,503
So now what we can do is we can keep these in here for you I development
257
00:11:01,759 --> 00:11:04,575
But as soon as we run this scene
258
00:11:04,831 --> 00:11:08,671
They will be gone and replaced with the actual met up
259
00:11:09,183 --> 00:11:09,695
Ok
260
00:11:09,951 --> 00:11:12,767
Play say back button in here in the easiest way to do that
261
00:11:13,023 --> 00:11:15,583
Is to add a button to the margin container
262
00:11:15,839 --> 00:11:16,607
Like cell
263
00:11:16,863 --> 00:11:18,911
And it's going to be huge by The Fall
264
00:11:19,423 --> 00:11:21,471
But what I'm going to do is I'm going to
265
00:11:21,983 --> 00:11:23,007
Select the button
266
00:11:23,263 --> 00:11:26,079
And scroll down to the container sizing
267
00:11:26,335 --> 00:11:27,103
Section
268
00:11:27,359 --> 00:11:31,967
I'm going to say shrink begin for the horizontal and shrink begin
269
00:11:32,223 --> 00:11:34,271
For the vehicle and that will put it
270
00:11:34,527 --> 00:11:35,551
The top left
271
00:11:36,575 --> 00:11:38,623
Then for the tax I'm going to call it back
272
00:11:39,391 --> 00:11:42,207
And let's rename this button to back button
273
00:11:42,719 --> 00:11:44,255
Add again let's market
274
00:11:44,767 --> 00:11:45,791
Seem unique name
275
00:11:46,047 --> 00:11:48,863
And then I'm going to give this button a minimum size
276
00:11:51,167 --> 00:11:51,679
50
277
00:11:51,935 --> 00:11:54,751
Just to give it some nice padding now what you notice
278
00:11:55,263 --> 00:11:55,775
Is that
279
00:11:56,543 --> 00:11:57,823
Does clipping a car
280
00:11:58,335 --> 00:12:01,919
So what we're going to have to do is change the number of columns in the career
281
00:12:02,175 --> 00:12:02,687
2
282
00:12:03,455 --> 00:12:06,527
And now this is presenting another problem
283
00:12:07,039 --> 00:12:08,063
And this problem is
284
00:12:08,319 --> 00:12:10,367
These cars are now leaving our screen
285
00:12:10,623 --> 00:12:12,671
This isn't actually going to be a problem
286
00:12:12,927 --> 00:12:13,695
In our
287
00:12:14,207 --> 00:12:17,791
Game because we only have one upgrades but as you add more upgrades
288
00:12:18,047 --> 00:12:19,583
This is not going to scroll
289
00:12:19,839 --> 00:12:20,863
It's just going to be
290
00:12:21,375 --> 00:12:23,679
And a proper with a handle that is with a
291
00:12:23,935 --> 00:12:24,959
Scroll container
292
00:12:25,215 --> 00:12:28,799
Will introduce the scroll container a little bit later in this lesson
293
00:12:29,055 --> 00:12:30,335
Let's get the other pieces
294
00:12:30,847 --> 00:12:32,639
Done the way we need to do on so
295
00:12:33,151 --> 00:12:36,479
Is back button now I'm just going to remove this last minute upgrade card
296
00:12:36,991 --> 00:12:40,575
So now the back button will be in the top left like cell
297
00:12:41,087 --> 00:12:42,623
And we just need to make the back but
298
00:12:43,647 --> 00:12:44,159
Work
299
00:12:44,671 --> 00:12:47,999
So in our case the back button will always go back to the main menu
300
00:12:48,511 --> 00:12:49,535
So let's create a function
301
00:12:50,047 --> 00:12:51,327
On backpack
302
00:12:52,351 --> 00:12:54,143
And then we're going to call
303
00:12:54,655 --> 00:12:55,423
Screen
304
00:12:55,679 --> 00:12:56,447
Transition
305
00:12:57,471 --> 00:12:58,239
Transition
306
00:12:58,495 --> 00:12:59,775
Then we're going to away
307
00:13:00,287 --> 00:13:02,079
Stream transition
308
00:13:02,335 --> 00:13:03,871
Transitioned halfway
309
00:13:04,895 --> 00:13:06,687
Then we're going to call get three
310
00:13:06,943 --> 00:13:07,967
Start change
311
00:13:08,223 --> 00:13:09,759
Seem to fail
312
00:13:10,015 --> 00:13:11,039
And we want to go back
313
00:13:11,295 --> 00:13:11,807
2
314
00:13:13,087 --> 00:13:13,855
Main
315
00:13:14,623 --> 00:13:16,415
Our main menu
316
00:13:16,671 --> 00:13:17,183
Maidstone
317
00:13:17,695 --> 00:13:21,535
Ok and you're not as that were repeating basically these three lines of code
318
00:13:21,791 --> 00:13:22,303
Everywhere
319
00:13:22,559 --> 00:13:26,399
If you wanted to you could have straight to this into a function
320
00:13:26,655 --> 00:13:27,935
Like so
321
00:13:28,191 --> 00:13:31,263
So let's copy these lines go to Screen transition
322
00:13:31,775 --> 00:13:35,359
So again that you can control click the screen transition to go to that
323
00:13:35,615 --> 00:13:36,127
Script
324
00:13:36,639 --> 00:13:37,919
Let's call
325
00:13:38,175 --> 00:13:39,455
What's create a function called
326
00:13:40,735 --> 00:13:41,759
Transition
327
00:13:42,271 --> 00:13:43,039
To seem
328
00:13:43,551 --> 00:13:45,343
Let's pass in a scene pack
329
00:13:46,111 --> 00:13:47,391
Which is a string
330
00:13:48,159 --> 00:13:50,207
And then was peace that killed in there
331
00:13:50,463 --> 00:13:51,231
But instead
332
00:13:51,487 --> 00:13:54,047
The heart of string here for passing the scene
333
00:13:56,095 --> 00:13:57,119
We have that
334
00:13:57,375 --> 00:13:58,911
Code in a nice
335
00:13:59,167 --> 00:14:01,471
Function that we can use so we can use E10
336
00:14:01,727 --> 00:14:03,775
We don't need the screen transitions
337
00:14:04,799 --> 00:14:08,895
Here so we can remove that and just call transition and await transition pathway
338
00:14:09,151 --> 00:14:10,431
Now we go to our
339
00:14:10,687 --> 00:14:11,711
Meadow menu
340
00:14:11,967 --> 00:14:14,783
Instead of doing this we can say a transition underscore
341
00:14:15,039 --> 00:14:16,831
To underscore seem
342
00:14:17,087 --> 00:14:18,111
Copy this path
343
00:14:18,623 --> 00:14:20,159
Put it in as the first argue
344
00:14:20,415 --> 00:14:21,695
Anna movies order line
345
00:14:23,487 --> 00:14:26,559
It's an alpha where should be able to run the game click upgrade
346
00:14:27,071 --> 00:14:27,839
And then click back
347
00:14:28,351 --> 00:14:31,167
We actually didn't connect the back press sing
348
00:14:31,423 --> 00:14:32,447
So we should do that
349
00:14:32,959 --> 00:14:35,263
So let's get a reference to the back button
350
00:14:35,519 --> 00:14:36,031
Bye
351
00:14:36,287 --> 00:14:38,079
Making an already very
352
00:14:38,591 --> 00:14:39,359
Like so
353
00:14:40,127 --> 00:14:43,199
And then in the ready method I'm going to say back button
354
00:14:43,967 --> 00:14:45,503
Depressed
355
00:14:46,271 --> 00:14:47,039
On back
356
00:14:47,551 --> 00:14:48,063
Pressed
357
00:14:49,343 --> 00:14:52,159
And make sure again not to invoke it but just a reference
358
00:14:53,439 --> 00:14:54,719
Right now let's go ahead and run
359
00:14:54,975 --> 00:14:55,743
Upgrade
360
00:14:55,999 --> 00:14:56,511
Clickbait
361
00:14:57,023 --> 00:14:58,047
And we're all good
362
00:14:59,327 --> 00:14:59,839
Ok
363
00:15:00,095 --> 00:15:02,911
So now let's go to her end screen
364
00:15:03,167 --> 00:15:05,983
Open up the end screen and instead of restart
365
00:15:06,495 --> 00:15:08,543
Let's change this button to
366
00:15:08,799 --> 00:15:10,335
Continue instead
367
00:15:10,847 --> 00:15:12,895
I'd like to change this quick button to quit
368
00:15:13,407 --> 00:15:16,223
So rename this text to quit to menu
369
00:15:16,735 --> 00:15:17,759
And the restart button
370
00:15:18,015 --> 00:15:20,063
Let's call this continue
371
00:15:20,319 --> 00:15:21,087
Plexal
372
00:15:21,343 --> 00:15:23,903
My name is restart button to continue button
373
00:15:25,183 --> 00:15:25,695
Perfect
374
00:15:26,207 --> 00:15:28,255
Open up that and screen screw
375
00:15:28,511 --> 00:15:31,839
And everywhere we are referencing reset button which is just here
376
00:15:32,095 --> 00:15:34,143
We Gotta change this to continue one
377
00:15:34,399 --> 00:15:34,911
Likes
378
00:15:35,423 --> 00:15:37,727
And then let's rename this function
379
00:15:38,239 --> 00:15:41,823
In what we can do as we can highlighters Henry start button pressed
380
00:15:42,079 --> 00:15:46,175
Get ctrl-d to highlight the other currencies of that which there's only one of
381
00:15:46,431 --> 00:15:46,943
Unless
382
00:15:47,967 --> 00:15:53,855
We have a person now and we can use the arrow keys to move that cursor around see how it's moving in both places
383
00:15:54,367 --> 00:15:56,159
So we can take this restart here
384
00:15:56,671 --> 00:15:59,231
Highlight all of that by holding shift and
385
00:15:59,487 --> 00:16:00,511
Using arrow keys
386
00:16:01,023 --> 00:16:06,143
And we can instead type on continue button press and now it changes involve place
387
00:16:06,655 --> 00:16:09,215
Easy way to rename everything at once
388
00:16:09,471 --> 00:16:12,287
And so when the reason when the continue button is pressed
389
00:16:12,543 --> 00:16:13,311
We were
390
00:16:13,567 --> 00:16:15,615
2 instead of doing all of this
391
00:16:16,127 --> 00:16:17,151
We want to
392
00:16:17,663 --> 00:16:20,735
Change the scene to the mega menu
393
00:16:21,247 --> 00:16:22,271
So in here
394
00:16:23,039 --> 00:16:24,575
What's replace the strings
395
00:16:24,831 --> 00:16:26,623
M on the square menu
396
00:16:27,135 --> 00:16:28,415
Select that option
397
00:16:29,183 --> 00:16:30,719
And this is the footpath here
398
00:16:30,975 --> 00:16:32,511
Ok and the Clifton menu
399
00:16:32,767 --> 00:16:34,559
We need a transition to the
400
00:16:34,815 --> 00:16:35,583
Main city
401
00:16:35,839 --> 00:16:36,351
So
402
00:16:36,607 --> 00:16:38,655
Onclick button pressed we need to do
403
00:16:38,911 --> 00:16:40,447
Screen transition
404
00:16:40,959 --> 00:16:43,007
Start transition to scene
405
00:16:43,775 --> 00:16:46,335
And then this is going to be right now or not getting
406
00:16:46,591 --> 00:16:47,103
The
407
00:16:47,359 --> 00:16:49,407
Autocomplete suggestions in wires
408
00:16:49,919 --> 00:16:52,223
Godot does not recognise
409
00:16:52,479 --> 00:16:54,783
At this art to be a scene pack
410
00:16:55,039 --> 00:16:56,575
So we're just going to have to
411
00:16:56,831 --> 00:17:02,975
To sing herself now what we can do is if we don't remember the path we can go to the filter files here
412
00:17:03,231 --> 00:17:05,791
The file system search for main underscore menu
413
00:17:06,047 --> 00:17:07,071
And if you write
414
00:17:07,327 --> 00:17:07,839
You cancel
415
00:17:08,351 --> 00:17:09,119
Happy power
416
00:17:09,375 --> 00:17:11,167
Or you can hit ctrl shift c
417
00:17:11,423 --> 00:17:12,447
Search copy that
418
00:17:12,703 --> 00:17:14,239
And then let space that in
419
00:17:15,519 --> 00:17:16,543
And there we go
420
00:17:18,079 --> 00:17:19,103
So let's run a quick test
421
00:17:19,615 --> 00:17:21,407
Play I'm just going to die really
422
00:17:21,919 --> 00:17:23,967
Alright son Audi click continue
423
00:17:24,991 --> 00:17:28,831
We should be brought to this menu here and then we can click back
424
00:17:29,087 --> 00:17:30,623
An hour back at the main menu
425
00:17:30,879 --> 00:17:31,647
Where we can
426
00:17:31,903 --> 00:17:32,927
Go back into the game
427
00:17:33,695 --> 00:17:35,231
So we got a nice look right there
428
00:17:35,487 --> 00:17:38,047
No let's verify that the quicker menu is also work
429
00:17:38,559 --> 00:17:40,607
And quit the menu also works
430
00:17:40,863 --> 00:17:41,375
Now
431
00:17:41,631 --> 00:17:43,423
Actually doesn't also work
432
00:17:43,679 --> 00:17:44,959
Appears to be a problem
433
00:17:45,215 --> 00:17:49,311
The problem is that we are not on pausing the game again
434
00:17:49,823 --> 00:17:51,103
Unfortunately
435
00:17:51,359 --> 00:17:54,175
We're going to have to copy and paste this code and the reason is because
436
00:17:54,431 --> 00:17:58,015
We only want to unpause the scene tree after the transition happen
437
00:17:58,527 --> 00:18:04,415
So we can I put the get 3 pause false here because then the game will start running again and we don't want
438
00:18:04,927 --> 00:18:07,487
So we actually need to do an awake so even though
439
00:18:07,999 --> 00:18:09,535
The transition to seem in here
440
00:18:09,791 --> 00:18:11,071
Is being awaited
441
00:18:11,327 --> 00:18:11,839
Right here
442
00:18:12,351 --> 00:18:15,935
Where can I have to do the same so that we can unpause the tree
443
00:18:16,703 --> 00:18:17,727
When a probe
444
00:18:17,983 --> 00:18:18,495
So
445
00:18:19,007 --> 00:18:19,519
Let's
446
00:18:19,775 --> 00:18:22,079
Get rid of pores false after
447
00:18:22,847 --> 00:18:23,359
That
448
00:18:23,615 --> 00:18:25,151
Transition to scene line
449
00:18:25,407 --> 00:18:27,455
But then let's go ahead and Away
450
00:18:27,711 --> 00:18:29,503
Screen transition
451
00:18:30,015 --> 00:18:31,039
Transition halfway
452
00:18:32,063 --> 00:18:35,391
We can listen to this or we can await the signal in multiple places
453
00:18:35,647 --> 00:18:37,439
I was just quickly verify that work
454
00:18:39,999 --> 00:18:41,279
Alright that's working great
455
00:18:41,791 --> 00:18:43,327
And the final thing
456
00:18:43,583 --> 00:18:48,447
That we have to do is we have to make our upgrade actually work
457
00:18:48,703 --> 00:18:50,495
Unless should be fairly quick
458
00:18:51,263 --> 00:18:53,823
So let's go to our Vale drop component
459
00:18:54,591 --> 00:18:55,871
And what is are
460
00:18:56,127 --> 00:18:57,407
Mega upgrade do
461
00:18:57,919 --> 00:18:59,711
Let's go to our resources
462
00:19:00,479 --> 00:19:02,783
Meta upgrades experience games
463
00:19:03,551 --> 00:19:04,319
Trys
464
00:19:04,831 --> 00:19:05,343
And
465
00:19:05,855 --> 00:19:08,159
It increases the experience dropped Chance by
466
00:19:08,415 --> 00:19:09,183
10%
467
00:19:09,695 --> 00:19:13,535
And so what we're going to do is essential just going to add 10% onto
468
00:19:14,303 --> 00:19:14,815
The
469
00:19:15,071 --> 00:19:16,351
Vial drop camper
470
00:19:16,607 --> 00:19:18,911
So it's open up the volume drop component
471
00:19:19,423 --> 00:19:20,191
Script
472
00:19:20,447 --> 00:19:24,031
And what we're going to do as we're going to create a new variable called adjusted
473
00:19:24,543 --> 00:19:25,055
Drop
474
00:19:25,823 --> 00:19:26,591
Percent
475
00:19:27,871 --> 00:19:29,151
Is equal to
476
00:19:29,663 --> 00:19:30,431
Sharpest
477
00:19:30,943 --> 00:19:34,271
And then we're going to do this work in a cheque or metal progression
478
00:19:34,527 --> 00:19:35,807
Going to say if
479
00:19:36,831 --> 00:19:39,647
Meta progression save data
480
00:19:39,903 --> 00:19:40,927
And then the key
481
00:19:41,183 --> 00:19:43,231
Meta underscore upgrades
482
00:19:43,999 --> 00:19:46,303
What's the ID we want a reference
483
00:19:46,559 --> 00:19:50,911
We want to reference the experience again ID so let's go out and put that in there
484
00:19:51,167 --> 00:19:54,751
Now we have to do multiple levels of checks here and it might be better
485
00:19:55,007 --> 00:19:58,591
If we create a function in r m progression to let
486
00:19:58,847 --> 00:19:59,615
Take this out
487
00:20:00,383 --> 00:20:02,943
Let's open up the metal progression
488
00:20:04,991 --> 00:20:08,063
Instead of admire upgrade let's do another function called
489
00:20:10,111 --> 00:20:11,135
Bank get
490
00:20:11,391 --> 00:20:12,159
Upgrade
491
00:20:12,415 --> 00:20:12,927
Count
492
00:20:14,463 --> 00:20:15,231
Like so
493
00:20:15,487 --> 00:20:18,303
And then we need to pass in the upgrades ID
494
00:20:19,839 --> 00:20:21,119
Which is the type of string
495
00:20:22,143 --> 00:20:24,959
What's pays that line that we had in the other screen
496
00:20:25,471 --> 00:20:25,983
So
497
00:20:26,239 --> 00:20:30,591
If we don't need this meta progression if save data metal upgrades
498
00:20:30,847 --> 00:20:33,407
We the change this experience game key to
499
00:20:33,663 --> 00:20:34,943
Has
500
00:20:35,199 --> 00:20:37,247
And I'm passing the upgrade ID
501
00:20:38,527 --> 00:20:40,831
Then what we're going to do is going to return
502
00:20:41,599 --> 00:20:42,623
Save data
503
00:20:42,879 --> 00:20:43,903
Metre upgrade
504
00:20:44,415 --> 00:20:46,207
With this ID here
505
00:20:46,463 --> 00:20:47,487
Upgrade ID
506
00:20:47,743 --> 00:20:49,535
And then the key quote
507
00:20:50,047 --> 00:20:51,839
So essentially checking to see
508
00:20:52,095 --> 00:20:53,375
If we have that upgrades
509
00:20:53,631 --> 00:20:56,703
If so then we can safely reference the quantity
510
00:20:56,959 --> 00:20:57,471
And return
511
00:20:58,239 --> 00:20:59,775
Now if that check fails
512
00:21:00,031 --> 00:21:00,799
What will do
513
00:21:01,055 --> 00:21:02,591
Is will Simply Be Returns
514
00:21:04,639 --> 00:21:10,015
So now we can safely call this function and it will always give us a number
515
00:21:10,271 --> 00:21:14,623
Price of Back In Arms vinyl drop component script let's just do this
516
00:21:15,391 --> 00:21:16,416
We're going to say
517
00:21:16,928 --> 00:21:19,488
Smallest screen on a variable called experience
518
00:21:19,744 --> 00:21:21,280
Gain upgrade
519
00:21:21,792 --> 00:21:23,072
Count is equal to
520
00:21:23,328 --> 00:21:25,120
Meta progression get
521
00:21:25,888 --> 00:21:26,912
Upgrade count
522
00:21:27,424 --> 00:21:28,704
Experience game
523
00:21:28,960 --> 00:21:29,472
Like so
524
00:21:30,496 --> 00:21:32,288
And then we're going to say
525
00:21:33,056 --> 00:21:36,640
Experience gained upgrades count is greater than 0
526
00:21:36,896 --> 00:21:41,504
What we're going to do in that block is were going to say the adjust and drop percent
527
00:21:42,016 --> 00:21:43,552
What equals 1
528
00:21:44,832 --> 00:21:47,648
In this check if random greater than drops
529
00:21:47,904 --> 00:21:50,720
Is a round of greater than adjusted dropped
530
00:21:50,976 --> 00:21:51,488
Ok
531
00:21:51,744 --> 00:21:53,280
An easy way to test
532
00:21:53,536 --> 00:21:56,608
Is I'm actually going to change this is just a drop percent
533
00:21:56,864 --> 00:21:58,144
From 0.1
534
00:21:58,400 --> 00:21:58,912
2
535
00:21:59,168 --> 00:21:59,936
1
536
00:22:00,192 --> 00:22:02,752
And then I'm going to go to my basic enemy here
537
00:22:03,520 --> 00:22:07,872
Open up the bass Academy go to the Vale drop on it and set the drop percent 20
538
00:22:08,896 --> 00:22:11,968
And so since I have that experience game upgrade
539
00:22:12,224 --> 00:22:15,296
I should see all the rats dropping vials
540
00:22:15,552 --> 00:22:16,576
Every single time
541
00:22:16,832 --> 00:22:19,904
Even though I've configured their drop percent to be 0
542
00:22:21,184 --> 00:22:22,464
I look at that it's work
543
00:22:22,720 --> 00:22:27,072
Sign in to reset the stuff I'm going to put a drop percent for the rats at 35%
544
00:22:27,584 --> 00:22:30,400
And then I'm going to go back to my vale drop component
545
00:22:30,656 --> 00:22:33,472
And make this adjusted represent .1 again
546
00:22:33,728 --> 00:22:34,240
Alright
547
00:22:34,496 --> 00:22:38,848
So that's basically our meta-regression system in place
548
00:22:39,104 --> 00:22:43,712
In the next lesson it's going to be very quick we're just going to take a look at adding scrolling
549
00:22:44,224 --> 00:22:45,504
To our Meadow
550
00:22:45,760 --> 00:22:47,552
Upgrade menu here
551
00:22:47,808 --> 00:22:48,832
So that when we have
552
00:22:49,344 --> 00:22:52,672
More than 2 metre upgrades it will scroll the view
553
00:22:52,928 --> 00:22:55,744
And that way we can develop more
37141
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.