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:04,096
We're in the home stretch of having everything in place that we need
2
00:00:04,352 --> 00:00:06,144
In order to call this game
3
00:00:06,400 --> 00:00:07,168
Full game
4
00:00:07,424 --> 00:00:11,776
And the last couple of things that we need to do our various menus
5
00:00:12,032 --> 00:00:15,360
Most games have a main menu so we're going to make a main menu
6
00:00:15,616 --> 00:00:17,664
I never going to make an options menu
7
00:00:17,920 --> 00:00:24,064
And then we're going to make a pause menu where you can pause the game at any point and going to the auction
8
00:00:24,320 --> 00:00:25,344
Or quit to the main menu
9
00:00:25,600 --> 00:00:27,136
And all of that goods
10
00:00:27,648 --> 00:00:30,208
So what we're going to start with the main menu
11
00:00:31,232 --> 00:00:32,000
Let's get into
12
00:00:32,512 --> 00:00:33,792
So I'm going to create a new scene
13
00:00:34,048 --> 00:00:37,120
With control and or by going to the scene but not the top yeah
14
00:00:37,376 --> 00:00:40,704
I'm going to create the route now as a type of canvas layer
15
00:00:41,472 --> 00:00:43,520
Alright let's call this main menu
16
00:00:44,288 --> 00:00:48,384
And then I'm going to add a margin container as a child
17
00:00:48,640 --> 00:00:49,152
And then
18
00:00:49,408 --> 00:00:52,224
Said that to 4 rectangle by going to the toolbar button
19
00:00:52,480 --> 00:00:55,040
And then telling the Anchor preset to 4 rectangle
20
00:00:55,296 --> 00:00:55,808
Like so
21
00:00:57,088 --> 00:00:58,880
What say that in seems you are
22
00:01:00,123 --> 00:01:02,491
Subtitled by
online-courses.club
We compress knowledge for you!
23
00:01:02,492 --> 00:01:01,184
Ok perfect
24
00:01:01,440 --> 00:01:05,536
Now what I'm going to do is I'm going to give the screen a little bit of a bear
25
00:01:05,792 --> 00:01:08,352
Crowned by going to my main theme here
26
00:01:08,608 --> 00:01:11,936
I'm going to copy this tilemap node with ctrl c
27
00:01:12,448 --> 00:01:14,752
Bring it back over to the main menu and pasted here
28
00:01:15,008 --> 00:01:19,104
And I'm gonna put this as the first child so that all the control elements are in Toronto
29
00:01:19,360 --> 00:01:24,992
Now if you're tileman grade is getting a little bit stuck and it's adding a little bit too much busy this for you
30
00:01:25,248 --> 00:01:28,320
Just go ahead and I got off the visibility of a tilemap for now
31
00:01:28,576 --> 00:01:30,624
While we work on the rest of the UI
32
00:01:30,880 --> 00:01:35,488
The first thing I'm going to do as I'm going to add a box container to the margin container
33
00:01:35,744 --> 00:01:37,024
And then I'm going to set this week
34
00:01:37,280 --> 00:01:37,792
Container
35
00:01:38,304 --> 00:01:40,352
Sizing in the inspector here
36
00:01:40,608 --> 00:01:43,168
To shrink Centre and shrink
37
00:01:43,424 --> 00:01:44,704
Centre for both
38
00:01:45,984 --> 00:01:48,288
Alright let's add a label
39
00:01:49,056 --> 00:01:50,592
To this bbox container
40
00:01:50,848 --> 00:01:53,152
And let's give our game a name
41
00:01:53,408 --> 00:01:59,296
Something like the arena this is all games name you can name it whenever you want I'm just picking the arena because it's very
42
00:01:59,808 --> 00:02:02,880
And there's are game titled and Alex go to
43
00:02:03,136 --> 00:02:04,672
The settings here
44
00:02:05,184 --> 00:02:09,280
And let's change the font size to 32 so it's nice and big
45
00:02:10,560 --> 00:02:11,328
And it should be good
46
00:02:11,584 --> 00:02:16,960
Remind me to do if I'm going to Institute a child scene and I'm going to instantiate that sound button
47
00:02:17,216 --> 00:02:19,008
And when I call this one play
48
00:02:19,520 --> 00:02:21,824
And rename the sound button to play button
49
00:02:23,104 --> 00:02:26,688
And then we can duplicate that was controlled d and we'll call this one
50
00:02:27,456 --> 00:02:30,528
Still write quit in the text and then name this too
51
00:02:31,040 --> 00:02:31,808
Quit button
52
00:02:35,136 --> 00:02:40,000
Let's give these a panel container so that they have a little bit of a background behind them
53
00:02:41,024 --> 00:02:42,560
Underneath margin container
54
00:02:42,816 --> 00:02:44,864
I'm going to add a panel container note
55
00:02:45,632 --> 00:02:46,400
Like cell
56
00:02:47,680 --> 00:02:51,520
And movable container up as a first child of the margarine contain
57
00:02:51,776 --> 00:02:53,312
And I'm going to set this one
58
00:02:53,568 --> 00:02:57,152
Horizontal and vertical container sizing in the inspector here
59
00:02:57,664 --> 00:02:59,968
How to shrink a centre in both directions again
60
00:03:00,736 --> 00:03:05,344
And then I'm going to take that big box container and make it a child of the panel container by dragging it in
61
00:03:05,600 --> 00:03:06,624
That's looking really good
62
00:03:06,880 --> 00:03:13,024
Let's do another Miner change your we're going to add a margin container to the panel container
63
00:03:13,536 --> 00:03:16,096
As a child and then dragged if you box container into that
64
00:03:16,608 --> 00:03:18,400
This should be what you're seeing three
65
00:03:18,656 --> 00:03:19,424
Looks like
66
00:03:20,960 --> 00:03:22,752
Click on the margin container here
67
00:03:23,008 --> 00:03:29,152
Scroll down to the theme override Constance section in a bit of a pickle
68
00:03:29,408 --> 00:03:30,688
For each of those values
69
00:03:31,456 --> 00:03:34,016
So now we have a little bit of pairing on every app
70
00:03:34,272 --> 00:03:37,088
And is actually a little bit of padding on the top
71
00:03:37,344 --> 00:03:38,880
So I'm just going to remove
72
00:03:39,136 --> 00:03:39,904
The margin
73
00:03:40,160 --> 00:03:40,672
Top
74
00:03:41,440 --> 00:03:42,720
And that looks a little bit more
75
00:03:42,976 --> 00:03:44,000
It's now ok
76
00:03:44,256 --> 00:03:47,328
Let's go ahead and add one more buttons or duplicate the play button
77
00:03:47,584 --> 00:03:49,632
And I'm going to call this options button
78
00:03:52,960 --> 00:03:53,472
And
79
00:03:53,728 --> 00:03:56,288
Rename this text to options
80
00:03:57,568 --> 00:04:00,896
So those are basic main menu now on way to show the town map
81
00:04:01,152 --> 00:04:01,920
We should see
82
00:04:02,944 --> 00:04:04,224
Now if I click
83
00:04:04,480 --> 00:04:05,760
The run scene button
84
00:04:06,016 --> 00:04:10,624
We should have a nice background along with the music playing and all of the
85
00:04:10,880 --> 00:04:11,392
Good
86
00:04:11,904 --> 00:04:16,512
Alright so let's go ahead and so like all of his buttons here by shift clicking all of them
87
00:04:16,768 --> 00:04:20,351
And then let's right-click and say access as unique name
88
00:04:20,607 --> 00:04:22,911
We have all those accessed as unique names now
89
00:04:23,167 --> 00:04:25,471
Unless add a script to the main menu here
90
00:04:26,751 --> 00:04:28,799
Alright and then in the Rain method
91
00:04:30,079 --> 00:04:32,639
Let's go ahead and attach
92
00:04:32,895 --> 00:04:34,943
The play button sorry to say play button
93
00:04:35,199 --> 00:04:37,503
And this is actually dollar sign person
94
00:04:37,759 --> 00:04:38,271
Play button
95
00:04:40,319 --> 00:04:41,599
Weather Dartford
96
00:04:42,111 --> 00:04:42,879
Dartconnect
97
00:04:43,391 --> 00:04:44,671
On play Blur
98
00:04:45,183 --> 00:04:48,255
And let's duplicate this liners copy and paste a few time
99
00:04:49,791 --> 00:04:50,559
So we have the
100
00:04:50,815 --> 00:04:51,839
Options but
101
00:04:53,631 --> 00:04:55,167
And we have the quick
102
00:04:57,727 --> 00:05:03,359
Ok and then leads in the options button line let's change the function here to on
103
00:05:03,615 --> 00:05:04,639
Options press
104
00:05:04,895 --> 00:05:07,455
And then the quit to on quick press
105
00:05:08,735 --> 00:05:11,807
Ok let's Create all those functions so on play Press
106
00:05:15,391 --> 00:05:17,183
Just write pass in there
107
00:05:18,975 --> 00:05:20,255
And then on
108
00:05:20,511 --> 00:05:21,535
Options press
109
00:05:24,095 --> 00:05:26,655
Right person there and then
110
00:05:26,911 --> 00:05:27,679
On
111
00:05:27,935 --> 00:05:28,447
Quit
112
00:05:30,239 --> 00:05:31,263
Animal right path
113
00:05:31,519 --> 00:05:32,287
In there as well
114
00:05:32,799 --> 00:05:37,919
It's I've got over function stopped out and connected and you can see that there is no longer any errors
115
00:05:38,431 --> 00:05:44,575
Get salon options pressed when I'm going to do anything on quick pressed we're going to write in here get 3
116
00:05:44,831 --> 00:05:45,599
Dad quit
117
00:05:46,879 --> 00:05:49,951
And then on play Press what we're going to do is going to say get 3
118
00:05:50,207 --> 00:05:51,999
Start change scene
119
00:05:52,255 --> 00:05:52,767
2
120
00:05:53,023 --> 00:05:53,791
Bile
121
00:05:54,047 --> 00:05:55,327
And we are going to
122
00:05:55,583 --> 00:05:58,655
Put in there the path to our main scene
123
00:05:59,167 --> 00:06:00,447
So rest
124
00:06:00,703 --> 00:06:02,239
Seems main
125
00:06:03,519 --> 00:06:04,799
Main.ts
126
00:06:05,311 --> 00:06:07,615
What is going to do is this is going to
127
00:06:07,871 --> 00:06:10,943
Load up this main scene which is our games
128
00:06:11,199 --> 00:06:14,783
In order to get the main menu to be the scene that plays
129
00:06:15,295 --> 00:06:18,623
Rightmove we start the game we want to go to project project setting
130
00:06:18,879 --> 00:06:20,159
Go to the run
131
00:06:20,415 --> 00:06:21,951
Application section
132
00:06:22,207 --> 00:06:24,767
And then exchange this meme seen here
133
00:06:25,023 --> 00:06:26,303
Let's go ahead and
134
00:06:26,815 --> 00:06:28,351
Quickly load button
135
00:06:28,607 --> 00:06:30,655
And we're going to go to Sears UI
136
00:06:31,167 --> 00:06:32,447
And we looking for Maine
137
00:06:32,959 --> 00:06:33,471
Radio
138
00:06:34,751 --> 00:06:36,543
So now when you're on a game
139
00:06:36,799 --> 00:06:38,335
It will the main menu first
140
00:06:38,591 --> 00:06:42,431
And then you can click play and I should take you right into the game
141
00:06:42,943 --> 00:06:46,783
So basically what's happening is I'll go ahead and Run the game here
142
00:06:47,807 --> 00:06:49,343
If I go over to my remote
143
00:06:50,367 --> 00:06:51,391
Scene tree here
144
00:06:51,647 --> 00:06:57,279
Well I'm running the game you can see that we have our game events and we have a music player those are autoload
145
00:06:57,791 --> 00:06:59,327
Automatically add
146
00:06:59,583 --> 00:07:02,399
To the Node and the root note is there by The Fall
147
00:07:02,655 --> 00:07:03,935
Anytime you running a game
148
00:07:04,703 --> 00:07:05,215
So
149
00:07:05,471 --> 00:07:11,359
The other words again added in the last child under the root node is whatever your active seen is
150
00:07:12,127 --> 00:07:14,175
And so you can see that it's the main menu right now
151
00:07:15,199 --> 00:07:16,735
Now if we go home
152
00:07:16,991 --> 00:07:17,503
Play
153
00:07:18,527 --> 00:07:19,551
And I have paws
154
00:07:20,063 --> 00:07:23,647
Navigate to the main menu has been swapped out for the May
155
00:07:24,415 --> 00:07:28,255
So what does get tree change seem to file does it remove
156
00:07:28,511 --> 00:07:30,815
The active scene and replaces it
157
00:07:31,327 --> 00:07:33,375
With the scene that is loaded from
158
00:07:33,631 --> 00:07:34,143
Path
159
00:07:34,399 --> 00:07:37,215
And that's how you change what your active seen is
160
00:07:37,727 --> 00:07:40,287
Alright and we don't have an options menu yet
161
00:07:40,543 --> 00:07:42,335
So we're just going to leave that is pass
162
00:07:42,591 --> 00:07:45,151
And let us know if I broke the quick button work
163
00:07:45,407 --> 00:07:46,687
Adidas sole
164
00:07:46,943 --> 00:07:47,967
We're all good though
165
00:07:48,223 --> 00:07:52,831
Alright and that is our main menu will be coming back to
166
00:07:53,087 --> 00:07:54,879
Insert options menu
167
00:07:55,135 --> 00:07:56,671
Functionality here but for now
168
00:07:56,927 --> 00:07:57,951
It is funk
12327
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.