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
There are very few things that can
2
00:00:13,056 --> 00:00:14,848
Drive a player more crazy
3
00:00:15,104 --> 00:00:20,736
Then when they're trying to jump when maybe falling off of a lead they can't
4
00:00:21,760 --> 00:00:25,344
Maybe it feels like you know it little unfair that
5
00:00:25,600 --> 00:00:28,160
They pressed it when they thought they were on the lead
6
00:00:28,416 --> 00:00:34,560
Maybe technically they were but that's what they think and I feel like they're being cheated right you say
7
00:00:34,816 --> 00:00:40,960
Place with something called for forgiveness now it is called a lot of different terms in the industry some people call it lead
8
00:00:41,216 --> 00:00:47,360
Forgiveness but I like to call it for forgiveness I guess because of the alliteration of it with
9
00:00:47,616 --> 00:00:50,944
Forgiveness basically you start a timer the Mum at the player
10
00:00:51,200 --> 00:00:57,344
Falls off a ledge and you give them some Grace you give them a window a max value so we can
11
00:00:57,600 --> 00:01:00,141
That Max dies going to be called the for forgiveness so
12
00:01:00,143 --> 00:01:02,491
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
13
00:01:02,492 --> 00:01:06,560
So that means that the player can fall for a period of one second and in between
14
00:01:06,816 --> 00:01:12,960
The period of one second we still give him the ability to jump out of a new player here
15
00:01:14,752 --> 00:01:16,032
And you can see hear that
16
00:01:16,288 --> 00:01:19,104
This is where we're out allowing the player to jump
17
00:01:19,616 --> 00:01:23,456
So if the player presses jump and were grounded
18
00:01:23,712 --> 00:01:24,992
Set the velocity
19
00:01:25,248 --> 00:01:27,040
Tua jump hour value ok
20
00:01:27,296 --> 00:01:33,440
So if these two conditions are met then jump well if the player Falls
21
00:01:33,696 --> 00:01:34,720
Table Edge
22
00:01:34,976 --> 00:01:41,120
Grounded it is immediately set to false and they just can't job even if there is a split second after
23
00:01:41,376 --> 00:01:42,400
Going over that ledge
24
00:01:43,168 --> 00:01:43,680
Ok
25
00:01:43,936 --> 00:01:47,776
So what we're going to do is we're going to create those two variables that up here
26
00:01:48,800 --> 00:01:51,872
The first one is going to be a serialised field
27
00:01:52,384 --> 00:01:53,664
And it's going to be a private
28
00:01:53,920 --> 00:01:57,248
Float in this can be called false forgiveness
29
00:01:58,016 --> 00:02:02,880
How much is said this to one and that's why some comments here
30
00:02:03,392 --> 00:02:06,208
This is the amount of s
31
00:02:06,720 --> 00:02:08,256
The player has
32
00:02:08,768 --> 00:02:10,048
After falling
33
00:02:10,560 --> 00:02:11,584
From a ledge
34
00:02:12,096 --> 00:02:13,888
To be able to jump
35
00:02:16,448 --> 00:02:22,592
That's what that is another serializefield we might on the serialise this later but with
36
00:02:22,848 --> 00:02:25,920
Call this private floating where call is for forgiveness
37
00:02:28,480 --> 00:02:29,248
Counter
38
00:02:30,016 --> 00:02:33,088
And this is the simple counter
39
00:02:33,344 --> 00:02:36,672
That will begin the moment two player
40
00:02:37,952 --> 00:02:38,464
False
41
00:02:39,744 --> 00:02:41,280
From a ledge
42
00:02:42,816 --> 00:02:44,096
It's go ahead
43
00:02:45,632 --> 00:02:47,424
And start that counter
44
00:02:47,680 --> 00:02:50,496
When will the counter begin taking up
45
00:02:50,752 --> 00:02:52,032
Well it's after
46
00:02:52,288 --> 00:02:53,824
Grounded becomes Fosse
47
00:02:54,080 --> 00:02:54,592
Ok
48
00:02:54,848 --> 00:02:56,128
I'm gonna put the right here
49
00:02:56,384 --> 00:02:57,664
What's Wrexham pseudocode
50
00:02:58,944 --> 00:02:59,968
Call Daddy
51
00:03:00,224 --> 00:03:00,736
Here
52
00:03:01,760 --> 00:03:03,552
What's writing pseudocode
53
00:03:04,320 --> 00:03:07,392
If the player is no longer grounded
54
00:03:08,416 --> 00:03:10,464
Is no longer grounded
55
00:03:10,720 --> 00:03:13,024
Begin counting the fall
56
00:03:13,536 --> 00:03:14,560
Forgiveness
57
00:03:15,584 --> 00:03:16,352
Counter
58
00:03:17,888 --> 00:03:19,424
So if grounded
59
00:03:20,448 --> 00:03:25,312
Is set to false when we can put an exclamation mark front of the variable and that means if
60
00:03:25,568 --> 00:03:27,360
Grounded = false
61
00:03:27,872 --> 00:03:29,408
Then start counting
62
00:03:29,664 --> 00:03:30,688
For forgiveness
63
00:03:30,944 --> 00:03:31,712
Counter
64
00:03:31,968 --> 00:03:33,248
Plus equals time
65
00:03:35,040 --> 00:03:35,552
Die
66
00:03:36,064 --> 00:03:38,624
That means I'm just going to increase
67
00:03:39,904 --> 00:03:41,184
Every second ok
68
00:03:42,976 --> 00:03:43,744
Now
69
00:03:44,000 --> 00:03:46,560
If grounded is set to true
70
00:03:47,584 --> 00:03:49,120
Well then for forgiveness counter
71
00:03:49,632 --> 00:03:50,912
Is going to go back
72
00:03:51,168 --> 00:03:51,680
0
73
00:03:52,448 --> 00:03:52,960
Ok
74
00:03:53,728 --> 00:03:56,544
Cisco head in test this out and see what it looks
75
00:03:58,848 --> 00:04:02,176
So if we have play hopefully when we fall from a ledge
76
00:04:02,688 --> 00:04:04,480
Before forgiveness counter
77
00:04:04,992 --> 00:04:05,760
In the player
78
00:04:07,552 --> 00:04:08,832
Looks like your player here
79
00:04:11,392 --> 00:04:14,720
You'll see that the for forgiveness counter will start to
80
00:04:15,232 --> 00:04:18,559
Kick upwards so let's fall right now there it goes
81
00:04:19,071 --> 00:04:21,631
So it's slowly taking upwards
82
00:04:22,143 --> 00:04:23,167
I'll try again
83
00:04:23,679 --> 00:04:25,215
What's the faulty Guinness counter
84
00:04:25,727 --> 00:04:29,055
So if grounded equals false it's going to start taking up
85
00:04:30,335 --> 00:04:32,127
And goes back to zero there goes
86
00:04:32,383 --> 00:04:32,895
Pregnancy
87
00:04:33,151 --> 00:04:34,687
This allows us
88
00:04:34,943 --> 00:04:38,527
To check and see how long the player has been falling for
89
00:04:39,039 --> 00:04:41,343
It's been falling for 3 seconds well
90
00:04:41,599 --> 00:04:47,743
At this point if they're fault they decided to fall and we should allow them to send me the other job after 3
91
00:04:47,999 --> 00:04:49,279
Ridiculous
92
00:04:49,535 --> 00:04:51,583
But if it's like half a second
93
00:04:51,839 --> 00:04:57,471
Then we won't allow them to jump or maybe even a full second so that's what we got right here which is
94
00:04:57,727 --> 00:05:00,031
A fall forgiveness value of one second
95
00:05:01,055 --> 00:05:05,407
Was jumping back into a script in ensure that the conditions are correct
96
00:05:06,431 --> 00:05:06,943
In
97
00:05:07,711 --> 00:05:08,991
This line of code here
98
00:05:09,247 --> 00:05:10,527
So if
99
00:05:10,783 --> 00:05:14,111
Getbuttondown jump is true and
100
00:05:14,367 --> 00:05:16,159
Grounded no we don't want that
101
00:05:16,415 --> 00:05:17,183
And
102
00:05:17,695 --> 00:05:19,231
Paul forgiveness
103
00:05:19,487 --> 00:05:21,791
Counter is smaller than
104
00:05:22,303 --> 00:05:24,095
The four forgiveness value
105
00:05:25,375 --> 00:05:27,167
Then allow the player
106
00:05:27,679 --> 00:05:28,959
The jump
107
00:05:29,727 --> 00:05:32,799
So if the forgiveness value here is one
108
00:05:34,079 --> 00:05:39,711
As long as the counter is less than 1 so as long as the player has been falling for less than 1 seconds
109
00:05:39,967 --> 00:05:43,039
Then we can forgive them and allow them to jump
110
00:05:43,807 --> 00:05:46,623
So what we're going to do here is simply
111
00:05:47,135 --> 00:05:49,951
The moment the player does decide to jump
112
00:05:50,207 --> 00:05:51,999
Within that for forgiveness window
113
00:05:52,255 --> 00:05:54,815
We can be extra sure in just set grounded
114
00:05:55,071 --> 00:06:01,215
Two false cuz were absolutely sure that grounded is false we're going to wait for that value in the
115
00:06:01,471 --> 00:06:01,983
Physics
116
00:06:02,239 --> 00:06:06,335
Objects representing just said that grounded false just the extra sure
117
00:06:06,847 --> 00:06:07,871
MMA
118
00:06:08,127 --> 00:06:10,431
We also want to set the for forgiveness
119
00:06:11,455 --> 00:06:12,735
Counter we want to sell it
120
00:06:13,247 --> 00:06:14,527
2
121
00:06:15,295 --> 00:06:16,575
The forgiveness of Allah
122
00:06:16,831 --> 00:06:21,695
This is to ensure that the player can double jump within that for forgiveness window
123
00:06:21,951 --> 00:06:22,719
So again
124
00:06:22,975 --> 00:06:27,071
If they need these conditions meaning that pressed the jump key
125
00:06:27,327 --> 00:06:31,679
But they're also within that for forgiveness window of one second
126
00:06:32,447 --> 00:06:33,727
Then they can jump
127
00:06:34,239 --> 00:06:35,519
Wilder falling
128
00:06:36,287 --> 00:06:38,079
But the moment they do jump
129
00:06:38,335 --> 00:06:42,431
We're going to stay grounded the false and working a set that both forgiveness counter
130
00:06:42,687 --> 00:06:48,831
3 equal to this for forgiveness values year in the reason why were doing their is so that they can
131
00:06:49,087 --> 00:06:49,599
Double jump
132
00:06:50,367 --> 00:06:51,647
What's this song
133
00:06:52,159 --> 00:06:53,183
And Theatre works
134
00:06:53,951 --> 00:06:57,279
Be sure to watch these values over here as we're playing
135
00:06:58,559 --> 00:07:00,863
So if I
136
00:07:02,655 --> 00:07:04,191
Fall off this ledge
137
00:07:04,959 --> 00:07:06,239
I can jump
138
00:07:07,775 --> 00:07:13,407
But I can't double jump that's the important thing for jump
139
00:07:13,663 --> 00:07:19,039
What that far forgiveness is a little bit too forgiving in my opinion so let's make it
140
00:07:20,063 --> 00:07:22,367
About half as see how that feels
141
00:07:23,391 --> 00:07:24,159
Not bad
142
00:07:27,231 --> 00:07:29,023
I don't mind that I really don't
143
00:07:29,791 --> 00:07:32,351
Think at the speed at which the players running
144
00:07:33,119 --> 00:07:36,959
Maybe making a little bit smaller actually just a tiny bit smaller
145
00:07:37,727 --> 00:07:39,775
About .5 seconds
146
00:07:43,871 --> 00:07:48,223
The best way to test this guys it's just pretend you're playing a game have some fun in
147
00:07:48,735 --> 00:07:50,015
See it feels right
148
00:07:50,271 --> 00:07:53,855
You want to play if you like to have control but it's still challenging
149
00:07:54,879 --> 00:07:57,951
Good good that feels pretty good
150
00:07:59,487 --> 00:08:02,047
So big jumps like this are good test
151
00:08:02,815 --> 00:08:03,839
Alright it feels great
152
00:08:04,607 --> 00:08:10,751
Alright 0.25 s is a perfect for forgiveness I'm going to memorise that exit play mode and then be sure
153
00:08:11,775 --> 00:08:13,311
.25 seconds
154
00:08:13,823 --> 00:08:16,127
And make sure I apply
155
00:08:16,895 --> 00:08:17,663
Can I buy prefab
156
00:08:18,943 --> 00:08:19,711
And we're going to go
11305
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.