Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,656 --> 00:00:12,800
Alright let's not forget about the door here we need to have that
2
00:00:13,056 --> 00:00:18,688
Play open right now currently just destroyed so I want to do is jump into the locked door here
3
00:00:19,968 --> 00:00:22,272
And an actually going to copy
4
00:00:24,064 --> 00:00:28,416
The parent objects I'm going to pierce it inside of itself and no that's weird it's hold on
5
00:00:28,672 --> 00:00:34,816
I want to remove everything except for the gates script and the polygon Collider
6
00:00:35,072 --> 00:00:37,120
I'm going to keep the polygon Collider
7
00:00:37,376 --> 00:00:39,168
I'm going to keep the gate script
8
00:00:39,424 --> 00:00:42,496
Any good on here and reading this to graphic
9
00:00:42,752 --> 00:00:48,896
Now on the graphic we don't need the polygon Collider or the gate script all we want is
10
00:00:50,176 --> 00:00:52,224
Just the Sprite renderer ok
11
00:00:53,248 --> 00:00:55,040
M20 out
12
00:00:55,552 --> 00:00:57,344
Everything in the graphic here
13
00:00:57,600 --> 00:01:01,933
Ok so why did I just do all that well if you take a look here we're going to have the locked door
14
00:01:01,935 --> 00:01:04,284
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
15
00:01:04,284 --> 00:01:08,864
And this is just going to be our polygon Collider in our Gate script when we open the gate
16
00:01:09,632 --> 00:01:11,424
I don't want to move
17
00:01:11,680 --> 00:01:12,960
The parent object
18
00:01:13,216 --> 00:01:13,984
Why is that
19
00:01:14,496 --> 00:01:20,640
Because I then I can plays Gates all throughout the world in various positions because the moment we hit play
20
00:01:20,896 --> 00:01:23,456
He's going to move to -2828.93
21
00:01:23,712 --> 00:01:24,736
N26
22
00:01:24,992 --> 00:01:25,504
18
23
00:01:26,016 --> 00:01:27,808
Because look watch this
24
00:01:28,832 --> 00:01:33,440
What's a were currently at this position when the player opens the gate
25
00:01:33,696 --> 00:01:35,744
Watch what happens with position as it moves
26
00:01:37,024 --> 00:01:38,560
The white positions changing
27
00:01:38,816 --> 00:01:44,960
Remember you can't separate out the X and Y transform positions in animation linked right so far
28
00:01:45,216 --> 00:01:46,240
Moving my position
29
00:01:46,752 --> 00:01:50,336
What is going to move this to -28.93 which is right here
30
00:01:51,104 --> 00:01:57,248
So everytime I open the door no matter where is located it's going to snap into place and negative 28.9
31
00:01:57,504 --> 00:02:00,320
In the world coordinates we don't want that
32
00:02:00,576 --> 00:02:04,928
Ok so that's why we're going to enemy only the graphic not the door
33
00:02:05,440 --> 00:02:11,328
Just got home create a new animation we can actually create the animation on the locked door
34
00:02:11,584 --> 00:02:13,120
The only control the child
35
00:02:13,376 --> 00:02:14,656
So let's do it that way
36
00:02:15,168 --> 00:02:16,704
How many create a new animation
37
00:02:16,960 --> 00:02:19,520
Put inside of a folder called other
38
00:02:19,776 --> 00:02:20,800
M&M doors
39
00:02:22,080 --> 00:02:23,616
1 in a mission called door
40
00:02:24,896 --> 00:02:26,944
Closed
41
00:02:27,968 --> 00:02:31,040
And then create a new animation and we call this door
42
00:02:31,552 --> 00:02:32,064
Open
43
00:02:33,344 --> 00:02:34,880
So I have two animations here
44
00:02:35,136 --> 00:02:37,440
Stop for the door open innovation
45
00:02:38,208 --> 00:02:42,048
I'm going to curly have the graphic as just 0 right
46
00:02:42,304 --> 00:02:45,888
30 years ago want to create a keyframe really quick just drag
47
00:02:46,144 --> 00:02:47,168
A position on it
48
00:02:47,424 --> 00:02:51,776
Just anywhere and then just go back to zero and that will tell you now be ok
49
00:02:52,032 --> 00:02:53,568
We're going to be 8000
50
00:02:54,336 --> 00:02:54,848
Ok
51
00:02:55,360 --> 00:03:00,992
Navigate to open this app in a minute open it up pretty slowly I'm gonna wait a little bit so that we can play a key sound
52
00:03:01,248 --> 00:03:05,088
So and unlock sound will happen here and then other open
53
00:03:05,856 --> 00:03:08,672
Over the course of May by about 2 seconds
54
00:03:10,720 --> 00:03:12,512
My dad
55
00:03:16,864 --> 00:03:17,632
Just like that
56
00:03:21,984 --> 00:03:24,032
The Sprite renderer disable
57
00:03:26,592 --> 00:03:27,360
Just like that
58
00:03:28,128 --> 00:03:31,200
Who's going to be our door open innovation for now
59
00:03:31,712 --> 00:03:33,504
And the
60
00:03:34,016 --> 00:03:40,160
Next thing I want to do is make sure we save out there prefab and then we're going to the animator Here and Now
61
00:03:40,416 --> 00:03:43,488
You can see we have a new animator associated with the locked door
62
00:03:43,744 --> 00:03:46,560
So we have door opened and door closed
63
00:03:47,072 --> 00:03:50,400
So your clothes that's good it should be orange that's going to be out
64
00:03:50,656 --> 00:03:54,752
Default position and then I'm going to make a transition to door open
65
00:03:55,264 --> 00:03:55,776
Ok
66
00:03:57,056 --> 00:04:02,432
Now this transition will require a parameter so try and get really quick without parameter will be
67
00:04:02,944 --> 00:04:09,088
I think we can do a trigger if you wanted to but actually wanted to be a bullying so that if we have a saving system in a game
68
00:04:09,344 --> 00:04:15,488
By the way you're gonna want to see the system eventually if the game is saved we're gonna want to meet Lee go to door open if
69
00:04:15,744 --> 00:04:19,071
Open the door before ok so make a bullying
70
00:04:19,327 --> 00:04:20,351
Enniskillen by car
71
00:04:20,863 --> 00:04:21,887
Opened
72
00:04:23,423 --> 00:04:24,703
Currently set to false
73
00:04:24,959 --> 00:04:27,263
If we set the condition to open = True
74
00:04:27,775 --> 00:04:29,055
When I can have an exact time
75
00:04:30,079 --> 00:04:32,127
I'm going to have no transition duration
76
00:04:33,151 --> 00:04:36,991
0 and then just make sure you double click on door opened in Settle loop time
77
00:04:38,015 --> 00:04:42,111
We don't want it to loop opened over and over and over again right we wanted to have him once
78
00:04:42,367 --> 00:04:48,511
We also want to make a transition back door closed and we can actually have this anime without even really having it
79
00:04:48,767 --> 00:04:50,047
What I mean is
80
00:04:50,303 --> 00:04:53,375
There's no keyframes associated with the closed door
81
00:04:53,631 --> 00:04:56,959
Which I can show you right here we got a closure
82
00:04:57,215 --> 00:05:00,799
There's no keyframes associated with it the only one working I really need
83
00:05:01,567 --> 00:05:03,871
Is just that 0-position rate
84
00:05:04,127 --> 00:05:05,151
To make sure we do that
85
00:05:05,663 --> 00:05:11,807
Just at the zero position to door closer we only have one keyframe here but if we are animated here
86
00:05:12,063 --> 00:05:14,879
Transitions we can actually start the transition duration
87
00:05:15,391 --> 00:05:19,487
Till like 2 seconds right so it's going to slowly enemy from open to closed
88
00:05:19,743 --> 00:05:21,535
We don't want an exit time
89
00:05:21,791 --> 00:05:24,607
For the transition between door open the door closed
90
00:05:24,863 --> 00:05:26,911
Indoor closed now loop time
91
00:05:29,215 --> 00:05:31,775
Alright so got that working just fine
92
00:05:32,031 --> 00:05:33,567
And also just said the list of
93
00:05:33,823 --> 00:05:38,687
Conditions on going from open the clothes do you want to see if open = boss
94
00:05:39,967 --> 00:05:42,015
N1 final thing guys
95
00:05:42,527 --> 00:05:44,063
The door opened animation
96
00:05:46,623 --> 00:05:48,159
It Moves the spray right
97
00:05:48,415 --> 00:05:50,463
It doesn't move the polygon Collider
98
00:05:50,975 --> 00:05:54,815
So what I want to do with the polygon Collider is the reason I had it on the top
99
00:05:55,071 --> 00:05:55,839
Parrot here
100
00:05:56,351 --> 00:06:02,495
Is because I wanna wait till to fully open before the players allowed to enter you see there's a lot in video games
101
00:06:02,751 --> 00:06:06,079
A controller player even though there's a gay opening like that
102
00:06:06,335 --> 00:06:09,151
Really want the player to be able to get stuck
103
00:06:09,663 --> 00:06:14,271
As it's opening right so want to wait completely till it opened and then
104
00:06:15,551 --> 00:06:20,159
Remove the polygon Collider to go to the record button here
105
00:06:20,927 --> 00:06:23,487
I just disable the polygon Collider at 2 seconds
106
00:06:24,511 --> 00:06:27,327
Must be voice keyframes over in and save it
107
00:06:27,583 --> 00:06:30,911
And it was that mean it means that on your clothes we want to make sure that
108
00:06:31,167 --> 00:06:37,311
What's a the door actually you know eventually closes for some reason it's so we wanted to lock again
109
00:06:37,567 --> 00:06:38,591
I just want to make sure
110
00:06:38,847 --> 00:06:44,991
Enable polygon Collider to be sure when it's closed when is close the graphic position is set to zero in
111
00:06:45,247 --> 00:06:48,319
So when it's locked the polygon Collider is enabled
112
00:06:49,599 --> 00:06:53,439
When is open we disable the polygon Collider at 2 seconds
113
00:06:54,207 --> 00:06:58,815
And we are just move the graphic position and also disable the sprite renderer
114
00:06:59,583 --> 00:07:00,607
Ok
115
00:07:02,143 --> 00:07:05,471
I'm going to go ahead and open up the gate script here
116
00:07:06,239 --> 00:07:11,871
An alarm you play against talking to do here instead of destroying the game object I actually just going to
117
00:07:12,127 --> 00:07:13,407
Set that bullying
118
00:07:13,663 --> 00:07:14,431
In the animator
119
00:07:16,479 --> 00:07:18,783
To Trill somebody new serializefield
120
00:07:20,319 --> 00:07:22,111
Going to be a private
121
00:07:22,367 --> 00:07:28,511
Animator then we're going to go to the cinema with a lowercase a alright so instead of Destroy or just going to say
122
00:07:28,767 --> 00:07:30,047
Animator
123
00:07:33,119 --> 00:07:34,143
Opened
124
00:07:35,167 --> 00:07:36,447
Is that a true
125
00:07:37,215 --> 00:07:39,519
Now remember guys we just made a mistake here
126
00:07:40,031 --> 00:07:42,335
We always want to be careful with our parameters
127
00:07:42,847 --> 00:07:45,407
Should the primer be uppercase or lowercase
128
00:07:46,431 --> 00:07:48,479
Let's take a look at animated to be sure
129
00:07:53,855 --> 00:07:56,159
Look I primer is uppercase
130
00:07:56,415 --> 00:07:57,951
It really needs to be lowercase
131
00:07:58,463 --> 00:07:59,231
Because
132
00:07:59,743 --> 00:08:04,607
This is basically a variable in variable should always be lowercase functions and classes are replicated
133
00:08:05,631 --> 00:08:08,959
These parameters which are basically variables can be lowercase
134
00:08:09,983 --> 00:08:13,055
So just be sure to change this to lowercase as well and the Script
135
00:08:13,311 --> 00:08:14,335
Say that out
136
00:08:15,103 --> 00:08:17,663
Let's test it see how it works
137
00:08:18,687 --> 00:08:19,455
Play
138
00:08:21,247 --> 00:08:22,015
There goes
139
00:08:22,271 --> 00:08:23,039
Alright
140
00:08:23,295 --> 00:08:25,343
The Lack Gate works just fine
141
00:08:26,111 --> 00:08:27,647
When we got here just add
142
00:08:28,671 --> 00:08:32,255
Quick sound effect to both of these go ahead and
143
00:08:32,511 --> 00:08:34,815
Jump into a locked door prefab
144
00:08:35,327 --> 00:08:40,191
And all I got to do to add some sounds is number and M functions
145
00:08:40,703 --> 00:08:41,727
Just add that script
146
00:08:42,495 --> 00:08:46,079
Whenever you're adding me in a major function scripture just going to add it to the same
147
00:08:46,335 --> 00:08:48,895
Gameobject that contains the animator
148
00:08:49,663 --> 00:08:52,991
An hour what I can do is just go ahead and
149
00:08:55,039 --> 00:08:57,599
Create two sound effects for the opening of the door
150
00:08:57,855 --> 00:09:00,671
We're going to play sad one and I'm going to play sound too
151
00:09:00,927 --> 00:09:05,535
Noticed at one year that sound one which is going to be the key being used sound
152
00:09:06,047 --> 00:09:07,583
Hennessey sound 2
153
00:09:08,095 --> 00:09:09,631
Play Sounds to let me go
154
00:09:09,887 --> 00:09:13,727
And now I can just go head in add my sounds to the innovative functions over here
155
00:09:13,983 --> 00:09:15,263
Go ahead in
156
00:09:15,519 --> 00:09:16,799
Find some sounds like
157
00:09:19,871 --> 00:09:23,711
I think we can just do a pass or a positive sound us
158
00:09:24,223 --> 00:09:25,247
Hamilton
159
00:09:26,015 --> 00:09:27,295
Interaction sound
160
00:09:33,183 --> 00:09:34,463
That's canical
161
00:09:34,719 --> 00:09:35,487
Do that
162
00:09:35,743 --> 00:09:37,023
No you just add
163
00:09:37,279 --> 00:09:40,863
To the size of set size to 1 and so it's only one sound here
164
00:09:41,119 --> 00:09:44,447
It was at 6 I think it was 6
165
00:09:45,215 --> 00:09:49,823
No I can't remember that one 10
166
00:09:50,079 --> 00:09:51,359
Turn it down two
167
00:09:51,871 --> 00:09:52,895
Is it going to be
168
00:09:53,151 --> 00:09:54,943
Let's see hear another call sound
169
00:10:00,345 --> 00:10:02,889
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
170
00:10:02,889 --> 00:10:03,647
Let's see if we can find something
171
00:10:14,143 --> 00:10:14,911
That's chemical
172
00:10:21,055 --> 00:10:24,895
Oh that's great I love that one that you that
173
00:10:25,151 --> 00:10:31,295
Set the size 21 and without that mechanical noise which one was it I forgot again
174
00:10:32,319 --> 00:10:33,343
That's why I chose
175
00:10:33,855 --> 00:10:34,879
Yeah that's great
176
00:10:35,135 --> 00:10:37,439
Alright so there's two sounds going to play
177
00:10:38,207 --> 00:10:39,487
When I open up again
178
00:10:40,255 --> 00:10:43,583
Elise hopefully test it and see how it looks
179
00:10:44,095 --> 00:10:49,215
Alright mate I don't get her in your own game
180
00:10:53,311 --> 00:10:54,847
I'm getting good at this game
181
00:10:56,639 --> 00:11:00,479
Perfect ok
182
00:11:00,735 --> 00:11:02,015
So
183
00:11:02,271 --> 00:11:04,063
We got the Gate opening
14768
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.