Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,120 --> 00:00:09,984
This video we're going to have a very simple enemy that constantly follows the player
2
00:00:10,240 --> 00:00:15,104
To do that we'll need to learn about the navigation messages and how to mark objects as stat
3
00:00:15,616 --> 00:00:18,176
Will add the necessary navmesh agents
4
00:00:18,432 --> 00:00:20,736
Can you play Michael to make him follow us
5
00:00:21,248 --> 00:00:27,136
The more dive into the animatorcontroller so he wants properly and will make him run after us when he's closer
6
00:00:27,904 --> 00:00:34,048
After that will add a robotics search like that constantly scans the environment and also add a free volumetric
7
00:00:34,304 --> 00:00:35,584
Defect from the Asset Store
8
00:00:36,096 --> 00:00:40,448
Finally McRae a game over a vent if the robot catches us
9
00:00:42,240 --> 00:00:46,336
Welcome the day 6 everybody had the script writing go
10
00:00:46,592 --> 00:00:51,712
I'll get him to work I Ronin the next lesson but for now I'm going to talk about adding enemies
11
00:00:52,224 --> 00:00:54,016
So I actually went back and forth
12
00:00:54,272 --> 00:00:55,552
On this topic
13
00:00:55,808 --> 00:01:00,909
Because honestly adding an enemy is a lot to do for your first game are you in a game you making 7-days
14
00:01:00,911 --> 00:01:03,387
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
15
00:01:03,388 --> 00:01:08,352
Remember both my games have no enemies at all and they work just fine getting into this world of artificial intelligence
16
00:01:08,608 --> 00:01:11,680
It's a big deal and I don't want to overwhelm anybody
17
00:01:11,936 --> 00:01:18,080
Also if I could have spent money on this project I probably would have just gotten something like Easy A
18
00:01:18,336 --> 00:01:22,432
54 playmaker or sensor toolkit which gives you all the actions you know
19
00:01:22,688 --> 00:01:28,832
Foreplay my girl but we're doing this for free and experimental and I found a really simple enemy
20
00:01:29,344 --> 00:01:32,160
That we can do just using a few simple playmaker action
21
00:01:32,416 --> 00:01:38,560
Animal add attention that I want to add that someone or something chasing the player through this
22
00:01:38,816 --> 00:01:39,328
Opium world
23
00:01:39,584 --> 00:01:40,864
So yeah let's get to
24
00:01:41,632 --> 00:01:43,936
First off I'm going to show you a glitch
25
00:01:44,192 --> 00:01:45,216
Probably note
26
00:01:45,472 --> 00:01:47,008
Let's go to our first person
27
00:01:48,032 --> 00:01:51,360
If you remember if you do ctrl alt f
28
00:01:51,616 --> 00:01:55,200
You can reposition your character whenever you're looking in the same window
29
00:01:55,712 --> 00:01:56,992
Show you the glittery now
30
00:02:00,064 --> 00:02:02,368
I'm going to the tree I'm going to the tree
31
00:02:02,624 --> 00:02:04,160
Spam go through
32
00:02:04,416 --> 00:02:10,560
We do not have any colliders on arteries so we don't want to play at a walk through and we don't wanna enemies to work boots
33
00:02:10,816 --> 00:02:13,120
So we need a capital letter let's do that
34
00:02:13,632 --> 00:02:19,264
And remember you could like search for Redwood in your assets window and add it right here
35
00:02:19,520 --> 00:02:21,824
If you click on open
36
00:02:22,080 --> 00:02:28,224
I'm going to show you the way I do it when I have a prefab already in the world so we have Redwood to right there
37
00:02:28,480 --> 00:02:31,296
Of course as you know it's separate from Artur and sister
38
00:02:31,808 --> 00:02:34,112
So if you click off it will go right to
39
00:02:34,880 --> 00:02:38,464
Genesis CD card demo object we used to get it ready for a train
40
00:02:38,720 --> 00:02:40,768
Do we need the outer capsule clarisonic
41
00:02:41,024 --> 00:02:42,304
Lie forward
42
00:02:42,816 --> 00:02:43,328
And then
43
00:02:43,584 --> 00:02:46,144
We have a select in the bottom and got to add component
44
00:02:46,400 --> 00:02:47,936
And then type in caps
45
00:02:48,192 --> 00:02:48,704
Collider
46
00:02:49,472 --> 00:02:52,032
Right there and it's obviously too big
47
00:02:52,544 --> 00:02:53,312
Play Otis
48
00:02:53,824 --> 00:02:54,592
Got running two
49
00:02:54,848 --> 00:02:57,664
I've been 20-ft away from it so it's got a radiator
50
00:02:58,432 --> 00:03:00,992
How much move dragon drop go to the left
51
00:03:01,760 --> 00:03:04,832
How much drag and go to the left to make it smaller
52
00:03:05,600 --> 00:03:06,112
Something like
53
00:03:06,368 --> 00:03:06,880
That's ok
54
00:03:07,136 --> 00:03:12,512
Someone to get closer and remember you can change like the centre of where this Collider is
55
00:03:13,024 --> 00:03:16,352
So just modify the x and z coordinates
56
00:03:17,376 --> 00:03:18,656
Help see it still cannot
57
00:03:21,216 --> 00:03:21,728
That's ok
58
00:03:22,752 --> 00:03:25,824
Little bit more trinket a little more
59
00:03:26,336 --> 00:03:27,872
And a let's move it down
60
00:03:28,384 --> 00:03:30,688
Something like that I just took the van in the capsol
61
00:03:31,200 --> 00:03:32,992
Naga play Walking by
62
00:03:33,760 --> 00:03:36,320
As you can see it blocks Orleans players
63
00:03:36,832 --> 00:03:38,624
So that was a weird thing that needed
64
00:03:41,952 --> 00:03:42,720
I bought it
65
00:03:43,488 --> 00:03:45,536
Ok that's actually looking really good
66
00:03:45,792 --> 00:03:47,072
Does a cornice I have
67
00:03:47,328 --> 00:03:48,096
Centre x
68
00:03:49,120 --> 00:03:55,264
Is 00 0.1 18 now before we add this to our terrain we need to
69
00:03:55,776 --> 00:03:56,288
Wake up
70
00:03:56,544 --> 00:03:58,848
Trainers like looking
71
00:03:59,104 --> 00:04:01,152
The update prefab with a capital letter
72
00:04:01,408 --> 00:04:04,224
What's good to override right here and it's quick
73
00:04:04,480 --> 00:04:05,248
Stop playing
74
00:04:05,504 --> 00:04:07,040
Now I really quick on red woman
75
00:04:07,296 --> 00:04:09,088
Ennis is a prefab what is like a template
76
00:04:09,600 --> 00:04:10,112
It would have
77
00:04:10,368 --> 00:04:16,512
So remember if you do anything different to an object in the train system when the click on terrain
78
00:04:17,024 --> 00:04:20,607
Let's go to the section and click refresh
79
00:04:22,399 --> 00:04:25,215
Every tree should have a capsule Collider now little
80
00:04:26,751 --> 00:04:29,567
I'm going to run to the tree Alright lyrics
81
00:04:32,127 --> 00:04:32,895
Not bad
82
00:04:33,407 --> 00:04:34,431
Exactly what I want
83
00:04:35,199 --> 00:04:35,711
Alright
84
00:04:35,967 --> 00:04:41,855
Another important thing before we had enemies is we need to tell unity what is static or dynamic
85
00:04:42,367 --> 00:04:45,695
And all that means is it does something move in the world
86
00:04:45,951 --> 00:04:47,487
Does it just stay still
87
00:04:47,999 --> 00:04:49,279
And I'm not talking about
88
00:04:49,535 --> 00:04:54,143
Leaves moving and can a separate like physical objects with a Collider
89
00:04:54,399 --> 00:04:57,727
And the fact is nothing really music set the player
90
00:04:58,239 --> 00:05:04,127
So if you click on first person player you would see that static is unchecked and that's good it's dynamic we don't want
91
00:05:04,639 --> 00:05:08,735
For instance our little terminal / ATM right here it is
92
00:05:09,247 --> 00:05:14,879
And if we had an enemy it wouldn't know it's static because we don't say so so then we will just walk right through
93
00:05:15,135 --> 00:05:21,279
So I'm just gonna go through this list and it will be different for you because you've had a different objects do the points of interest
94
00:05:21,535 --> 00:05:27,679
Homework assignment you had but all you have to do is just if something just stays there like a rocker it's a building
95
00:05:27,935 --> 00:05:31,519
You just need to make sure it's Mark this static and also remember the train doesn't move either
96
00:05:31,775 --> 00:05:33,567
To make sure the train is Marcus today
97
00:05:34,335 --> 00:05:40,479
Also if you want to speed things up remember you can hold on the control and just select all the stuff that you know
98
00:05:40,735 --> 00:05:43,039
Doesn't move in the world and should be marked as static
99
00:05:45,855 --> 00:05:51,999
Alright I selected the stuff that doesn't move a static home site of the game boundaries are invisible walls just
100
00:05:52,255 --> 00:05:54,559
Make sure of this enemy doesn't want to go off the edge of the map
101
00:05:55,071 --> 00:05:56,607
Everything I think
102
00:05:56,863 --> 00:06:02,239
That is like a wall or building something just stays there it's Mark list at greater in the upper right
103
00:06:03,263 --> 00:06:07,103
So I'm going to tell you guys about navmesh azure pathway
104
00:06:07,615 --> 00:06:13,759
And this is basically a system that unity makes to tell like an artificial intelligence where they can
105
00:06:14,015 --> 00:06:14,783
I cannot walk
106
00:06:15,807 --> 00:06:17,855
And that's what we need we have we're going to have
107
00:06:18,111 --> 00:06:24,255
Enemy player and he doesn't know if you can climb on top of a tree or not he doesn't know he can go up a mountain or not we need
108
00:06:24,511 --> 00:06:26,559
The bake what we call a navmesh
109
00:06:26,815 --> 00:06:32,447
And we got everything setup and I might take a little bit to bake this mesh but it shouldn't be too bad
110
00:06:32,703 --> 00:06:35,263
So here let's let's go back to our player
111
00:06:35,519 --> 00:06:36,543
Click on it
112
00:06:36,799 --> 00:06:37,567
Then click ass
113
00:06:38,079 --> 00:06:42,431
And we are going to find our navigation window so if you got a window
114
00:06:43,199 --> 00:06:46,015
Go to AI and then click on navigation
115
00:06:47,039 --> 00:06:52,159
And then we go we have the special window open and we don't have a good show like a blue thing
116
00:06:52,671 --> 00:06:56,511
LEGO blue terrain hugging all the models but we don't have that
117
00:06:57,023 --> 00:06:58,559
What's click on a train
118
00:06:59,327 --> 00:07:02,655
Can I hear it's ok to navigation static ok gun good
119
00:07:02,911 --> 00:07:05,471
Navigation areas walkable which you can lie
120
00:07:05,727 --> 00:07:08,031
Tags on objects as unlockable
121
00:07:08,543 --> 00:07:12,895
I want I want to send me to be able to pretty much so anyway the player can so it doesn't
122
00:07:13,919 --> 00:07:15,967
Let's click on the bake menu
123
00:07:16,479 --> 00:07:21,087
And in this window basically can tell like these artificial intelligence is like
124
00:07:21,343 --> 00:07:23,647
Where they can go on like their limitations
125
00:07:23,903 --> 00:07:26,975
Indoor Max slope 45 degree slope like I think
126
00:07:27,487 --> 00:07:32,607
Does enemy there be a little more like nimbo more able to climb steep slopes like that
127
00:07:32,863 --> 00:07:36,959
Instep high that's very nice climbing stairs to make that a little higher
128
00:07:37,215 --> 00:07:39,007
Again I'm just messing around
129
00:07:39,263 --> 00:07:39,775
You will have
130
00:07:40,031 --> 00:07:42,591
Define turn an important part of making games obviously
131
00:07:43,103 --> 00:07:46,687
So if we had bake it should create a navmesh after a cup of milk
132
00:07:47,967 --> 00:07:54,111
Alright we got a light blue colour covering like the whole world in this is great this is just telling me
133
00:07:54,367 --> 00:07:57,951
Where are the Artificial Intelligence azure these agents can actually walk
134
00:07:58,463 --> 00:08:04,607
If you look closely you can say oh look at that there's like a little like gap between the trees and it's exactly what
135
00:08:05,119 --> 00:08:07,935
We want our enemies not to walk through a tree but the go around
136
00:08:08,447 --> 00:08:14,591
And if you would like to go over this mountain you can see this light blue going up the mountain which means it will be able to walk
137
00:08:14,847 --> 00:08:16,127
So that's good then now
138
00:08:17,407 --> 00:08:19,967
Does Harveys buildings in the background which I think
139
00:08:20,223 --> 00:08:22,015
That's a waste licence
140
00:08:22,527 --> 00:08:26,879
No no I'm going to be able to govern these background objects so might be something I turn off
141
00:08:27,135 --> 00:08:31,743
Does the save on data and processing power did a pretty good job
142
00:08:31,999 --> 00:08:33,023
At first try
143
00:08:33,535 --> 00:08:37,119
Over here it will avoid our little terminal
144
00:08:37,631 --> 00:08:39,679
This is where enemies can walk
145
00:08:39,935 --> 00:08:41,215
And that's looking pretty
146
00:08:41,727 --> 00:08:44,799
What is possible like if you already get see this doesn't
147
00:08:45,055 --> 00:08:47,103
To anything right you as well to beat up
148
00:08:47,871 --> 00:08:51,711
So few at the player was able to go on top of mountain enemy won't be able to follow
149
00:08:51,967 --> 00:08:53,503
I'm ok with that
150
00:08:54,015 --> 00:08:58,623
It will make them feel little more realise they like waiting for them if they're trying to hide from an enemy
151
00:08:59,135 --> 00:09:00,415
It's looking pretty good
152
00:09:00,927 --> 00:09:02,719
Now we have a navmesh
153
00:09:02,975 --> 00:09:04,511
We need an enemy
154
00:09:04,767 --> 00:09:09,631
And this is again this is something I did a little research on was just click on inspector that will disable a navmesh
155
00:09:09,887 --> 00:09:11,679
As I was writing the story
156
00:09:11,935 --> 00:09:15,775
I decided I wanted to take some inspiration from Half-Life 2
157
00:09:16,543 --> 00:09:18,335
And I want to like this
158
00:09:18,591 --> 00:09:23,199
Faceless otherworldly like robot civilisation the Cannibal
159
00:09:23,455 --> 00:09:24,991
Like taking charge of Earth
160
00:09:25,503 --> 00:09:27,807
Inhumans arcanna like a slave race now
161
00:09:28,063 --> 00:09:30,367
So I mean care do you want to Xscape from this life
162
00:09:30,623 --> 00:09:33,951
By escaping from the checkpoint to like access the outside work
163
00:09:34,463 --> 00:09:36,767
Maybe where a loved one is waiting for them in this
164
00:09:37,023 --> 00:09:38,559
Like in this refugee camp
165
00:09:38,815 --> 00:09:40,607
Away from the control of these robot
166
00:09:41,119 --> 00:09:46,751
So that's what I searched for I went to the Asset Store and I just search for humanoid robots pretty much
167
00:09:47,263 --> 00:09:48,799
And I did find one that I really
168
00:09:49,567 --> 00:09:52,383
So if you just go to search for assets and just type in human
169
00:09:52,639 --> 00:09:53,151
I was just
170
00:09:53,407 --> 00:09:53,919
Comes up
171
00:09:54,431 --> 00:09:57,247
Well that's crazy I'm going to click on free apps
172
00:09:58,015 --> 00:09:59,807
I'm actually a lot of stuff over
173
00:10:00,345 --> 00:10:02,376
Subtitled by
-♪ online-courses.club ♪-
We compress knowledge for you!
https://t.me/joinchat/ailxpXoW3JVjYzQ1
174
00:10:02,377 --> 00:10:01,087
But I think
175
00:10:01,343 --> 00:10:02,879
This is the one I want
176
00:10:03,135 --> 00:10:04,927
The humanoid rig by sugar
177
00:10:05,695 --> 00:10:11,839
Can I like this one because it has animations in a rig all set up it's just a really is just drag and drop
178
00:10:12,095 --> 00:10:12,607
NTU now
179
00:10:13,119 --> 00:10:18,495
And I want to be walking around looking for the player and then when it gets close enough I wanted to run towards
180
00:10:19,263 --> 00:10:24,127
Let's click download and import him and then I'm going to need one more acid after that
181
00:10:24,895 --> 00:10:25,663
Import
182
00:10:26,687 --> 00:10:30,271
That's good I also want this kind of century BOB
183
00:10:30,527 --> 00:10:34,111
I want him to be like Harveys flashlights shining out of his head
184
00:10:34,623 --> 00:10:40,767
And I want to Splash at the be looking around just a creep the player I want to play the sea like this creature
185
00:10:41,023 --> 00:10:43,839
Can a walking slowly towards him from across the way
186
00:10:44,095 --> 00:10:50,239
Any night this little spotlight like a bigger jail spot like looking through the forest or the the
187
00:10:50,495 --> 00:10:53,823
Just to add this sense of wildest the Skies out
188
00:10:54,847 --> 00:10:58,175
So there is something I wanted I wanted to go for a volumetric light effect
189
00:10:58,943 --> 00:11:05,087
There's a lot of ways to do this you could pay money to get aura to which again you could do like a biometrics
190
00:11:05,599 --> 00:11:07,391
But we're doing it off 3 nights
191
00:11:07,647 --> 00:11:08,671
We're not spending money
192
00:11:09,183 --> 00:11:10,207
Cricfree.sc
193
00:11:10,719 --> 00:11:13,535
And the one I found was this vielight volumetric
194
00:11:14,815 --> 00:11:20,959
And it gets the job done it's pretty much like a simple 3D geometry with some transparent light textures and so it
195
00:11:21,215 --> 00:11:24,799
It's well I think it's pretty performance optimised so it download
196
00:11:25,823 --> 00:11:26,847
And I said m
197
00:11:27,871 --> 00:11:30,943
Alright that importantly make sure there wasn't any
198
00:11:32,223 --> 00:11:32,735
There's like
199
00:11:33,759 --> 00:11:35,807
Little things saying are you shouldn't do that
200
00:11:36,063 --> 00:11:36,831
That's that's wrong
201
00:11:37,087 --> 00:11:40,927
It was still a game of still there and there's none of those red hairs in the car
202
00:11:41,951 --> 00:11:42,719
Like the project app
203
00:11:42,975 --> 00:11:45,791
Can mice go near a player and I'm just going to hit
204
00:11:48,607 --> 00:11:50,143
How much are enemies
205
00:11:52,191 --> 00:11:52,959
Guess what
206
00:11:53,471 --> 00:11:55,519
Quick out of the search thing the search filter
207
00:11:56,287 --> 00:11:57,311
Asset right here
208
00:11:57,823 --> 00:11:59,359
And I'll where is our
209
00:11:59,615 --> 00:12:01,407
Humanoid but there is humanoid back
210
00:12:02,175 --> 00:12:04,479
Quick Avatar analyst dragon drop
211
00:12:06,783 --> 00:12:12,415
I know I'm just messing with them that his little small someone's going to kill him
212
00:12:12,671 --> 00:12:13,439
What about 1
213
00:12:13,695 --> 00:12:15,231
I do want to be intimidating
214
00:12:16,255 --> 00:12:18,303
And remember we need to change our tech
215
00:12:18,559 --> 00:12:19,327
That's enough
216
00:12:19,583 --> 00:12:23,167
Click here this is our his material right here that on the mat
217
00:12:23,423 --> 00:12:25,983
Right now and set to like a mobile texture
218
00:12:26,495 --> 00:12:28,543
I must go to retro 3D shape
219
00:12:29,055 --> 00:12:29,823
And flatlet
220
00:12:32,127 --> 00:12:36,479
I was going to go and get the shakes so let's take down the ginger intensity
221
00:12:39,295 --> 00:12:40,063
And remember
222
00:12:40,319 --> 00:12:41,343
I'm going to do everything
223
00:12:41,599 --> 00:12:42,623
Click on the texture
224
00:12:43,903 --> 00:12:44,415
Feltham
225
00:12:44,671 --> 00:12:45,183
Point
226
00:12:46,463 --> 00:12:46,975
56
227
00:12:49,023 --> 00:12:49,791
Is a macaw
228
00:12:56,191 --> 00:12:56,703
Pretty scary
229
00:12:57,215 --> 00:13:03,359
I just want to unknown human I want to be walking towards the player in the party like who is that that doesn't look good I think I mean
230
00:13:04,127 --> 00:13:07,199
In the next lesson will incorporate like this siren alarm
231
00:13:07,711 --> 00:13:10,783
Saying like art someone's escape at the checkpoint we need to catch up
232
00:13:11,295 --> 00:13:13,087
And then the enemies will slowly start
233
00:13:13,343 --> 00:13:15,903
When I go to add enemies all at once I want to spawn them
234
00:13:16,159 --> 00:13:18,207
As the player gets closer to the end of the
235
00:13:18,719 --> 00:13:19,743
What's
236
00:13:20,255 --> 00:13:24,863
On the game object of our robot we have an animator all set up
237
00:13:25,119 --> 00:13:28,447
I think I actually don't need to create a runtime in American troller
238
00:13:28,703 --> 00:13:31,007
The time when to walk and when to run
239
00:13:31,263 --> 00:13:33,567
But we have all the animations ready to go which is nice
240
00:13:34,335 --> 00:13:35,103
Omelette
241
00:13:35,359 --> 00:13:38,943
Sent around the subject of nav messages with sat nav
242
00:13:40,735 --> 00:13:42,271
So quick nav
243
00:13:42,783 --> 00:13:46,111
Mash agent right there there we got this says this is an agent that
244
00:13:46,367 --> 00:13:49,695
Follow the rules of a navmesh navigation match
245
00:13:49,951 --> 00:13:50,719
We baked early
246
00:13:51,231 --> 00:13:57,375
And remember you need to mess around with the stuff but basically this is where you say how fast it goes like how far
247
00:13:57,631 --> 00:13:59,935
He can turn and his off
248
00:14:00,191 --> 00:14:03,519
So like if he's walking up a slope for his work on the ground
249
00:14:03,775 --> 00:14:05,567
Loading that's important
250
00:14:05,823 --> 00:14:09,919
I found out these numbers earlier but remember it's ok to mess around and
251
00:14:10,431 --> 00:14:11,967
To mess up and then fix it after
252
00:14:12,735 --> 00:14:15,039
This is the offset for like how far will be
253
00:14:15,295 --> 00:14:15,807
The ground
254
00:14:16,319 --> 00:14:22,207
Is speed I'm going to be slow and again I think I might change the stuff later as I increase my playlist speed
255
00:14:22,463 --> 00:14:28,607
I want to be fast enough to be scary but not too much that it's unfair difficulty comes in as well you're actually
256
00:14:28,863 --> 00:14:29,631
Creating games
257
00:14:29,887 --> 00:14:31,167
With these variables
258
00:14:31,679 --> 00:14:32,703
How much change the
259
00:14:33,215 --> 00:14:34,495
21.5
260
00:14:35,775 --> 00:14:36,799
And I think
261
00:14:37,055 --> 00:14:37,567
That's it
262
00:14:37,823 --> 00:14:38,335
Like
263
00:14:38,591 --> 00:14:44,735
We're going to use playmaker to like script him and tell him how faster running what is walking speed
264
00:14:44,991 --> 00:14:46,783
This is his default value
265
00:14:47,039 --> 00:14:47,551
Pre-match
266
00:14:47,807 --> 00:14:53,951
Ok before you like nice little touches like that spotlight effect I was telling you about it sounds and I cannot lie
267
00:14:54,207 --> 00:14:55,487
The ability to kill the player
268
00:14:55,743 --> 00:14:57,279
Let's just make sure you can chase the
269
00:14:57,791 --> 00:14:59,327
So let's go to add component
270
00:15:00,095 --> 00:15:00,607
Unless
271
00:15:00,863 --> 00:15:03,167
Type fsm for playmaker fsm
272
00:15:03,679 --> 00:15:08,799
And let's Create some scripting we're going to program an enemy and we're going to make her first artificial
273
00:15:09,567 --> 00:15:12,383
Just so you know this is really simple artificial
274
00:15:14,175 --> 00:15:15,967
Not artificial intelligence evolved
275
00:15:16,223 --> 00:15:18,783
A bunch of tricks to make it seem like it's chasing you
276
00:15:19,295 --> 00:15:20,575
Now normally
277
00:15:20,831 --> 00:15:21,855
Play micro cams
278
00:15:22,111 --> 00:15:23,135
By the way
279
00:15:23,391 --> 00:15:24,671
Do navmesh
280
00:15:24,927 --> 00:15:25,695
Actions
281
00:15:26,719 --> 00:15:31,071
But we don't have anything we have won under animator and so we need to lose a really important stuff
282
00:15:31,583 --> 00:15:36,191
We need to download something called the ecosystem browser for playmaker
283
00:15:36,447 --> 00:15:40,799
And this allows us to search through a huge library of playmaker actions
284
00:15:41,055 --> 00:15:46,175
May by the developers playmaker also made by like friendly people who show their code on the internet
285
00:15:46,687 --> 00:15:50,271
But this will give us access to Italian different things and I can tell you how many times
286
00:15:50,783 --> 00:15:55,391
Eyebrows the ecosystem and then found an action and exactly what I needed to
287
00:15:55,903 --> 00:16:00,511
Are we do need to install it separately so before we can do a navmesh stuff we need to download
288
00:16:01,279 --> 00:16:04,095
Was going to play Mako and then go to the Walthamstow
289
00:16:04,863 --> 00:16:07,167
And then if you got a add-ons right here
290
00:16:07,423 --> 00:16:09,471
We can't click on ecosystem browser
291
00:16:09,983 --> 00:16:14,591
This works inside unity at download and install files automatically is pretty awesome
292
00:16:14,847 --> 00:16:17,407
So that's quick here that your system browser package
293
00:16:17,919 --> 00:16:18,943
What's click that
294
00:16:19,711 --> 00:16:21,759
Imported into unity
295
00:16:22,527 --> 00:16:23,807
Alright I think it was
296
00:16:24,063 --> 00:16:27,647
Now that we have the ability to download other scripts we need to download the Sky
297
00:16:27,903 --> 00:16:29,439
Obviously the download the action
298
00:16:29,951 --> 00:16:31,743
Let's go to add-ons
299
00:16:32,255 --> 00:16:33,279
Ecosystem
300
00:16:33,535 --> 00:16:34,303
Ecosystem
301
00:16:34,815 --> 00:16:36,863
Here we go yes now I can download
302
00:16:37,119 --> 00:16:39,679
Anything we want so what's it used the ecosystem
303
00:16:40,447 --> 00:16:41,727
And I'm going to type in here
304
00:16:42,239 --> 00:16:43,263
Pathfinding
305
00:16:45,055 --> 00:16:48,895
I'm right here it is pathfinding package this is what we want so just got a
306
00:16:49,151 --> 00:16:49,663
Get
307
00:16:49,919 --> 00:16:50,687
Get import
308
00:16:51,711 --> 00:16:57,855
And there we go I was that easy if you're looking for a specific action and you can't find it in the default actions used
309
00:16:58,111 --> 00:17:01,183
Ecosystem I'm telling you it's awesome and very use
310
00:17:01,695 --> 00:17:05,279
I want to make sure there wasn't any big hours of me of something
311
00:17:05,791 --> 00:17:06,815
Disable this
312
00:17:07,583 --> 00:17:11,935
Oh don't worry about that it's just a terrain thing we can clear it then it disappears
313
00:17:12,191 --> 00:17:14,495
If you can't clear that means your game won't compile
314
00:17:15,263 --> 00:17:16,799
You checking that cancel tab
315
00:17:17,055 --> 00:17:19,615
After the mixture is not a really big bug you're missing
316
00:17:19,871 --> 00:17:23,455
Ok we have our enemy selecting let's go to Ed
317
00:17:23,967 --> 00:17:25,759
Go to Action browser
318
00:17:26,015 --> 00:17:31,647
And let's just type up here we off navmesh I had it in the search bar and here's our new actions
319
00:17:32,159 --> 00:17:32,671
Sweet
320
00:17:33,439 --> 00:17:35,487
So now we have a actions that will make this work
321
00:17:35,743 --> 00:17:37,535
I need to find an action card set
322
00:17:37,791 --> 00:17:38,303
Agent
323
00:17:39,327 --> 00:17:40,095
It was like to stay
324
00:17:40,351 --> 00:17:44,191
But basically we want to use set agent destination as game on
325
00:17:44,959 --> 00:17:47,007
And the destination is going to be us
326
00:17:47,263 --> 00:17:48,031
It's going to be the player
327
00:17:48,543 --> 00:17:54,175
And that's what his enemy will be chasing so that are you sorry that's what we want to move across the navmesh
328
00:17:54,431 --> 00:17:55,967
And our destination is the play
329
00:17:56,223 --> 00:17:57,503
So grab a play at the top
330
00:17:58,015 --> 00:18:00,831
First-person ayo and his draganova destiny
331
00:18:01,855 --> 00:18:05,439
In trigger threshold I can get close enough it will start to recalculate
332
00:18:05,951 --> 00:18:08,511
Where should move you want the enemy to be like on top
333
00:18:08,767 --> 00:18:10,047
Stop player before does
334
00:18:10,559 --> 00:18:11,583
I'm going to change that
335
00:18:11,839 --> 00:18:12,863
20.1
336
00:18:13,887 --> 00:18:16,447
And we're going to have two different states action
337
00:18:16,703 --> 00:18:19,775
And I'm the stay organised let's call this state
338
00:18:20,543 --> 00:18:21,055
Like
339
00:18:21,311 --> 00:18:22,335
Walking
340
00:18:23,103 --> 00:18:24,127
Search
341
00:18:24,895 --> 00:18:25,407
Merida
342
00:18:25,919 --> 00:18:28,735
Animals going to have a state that's called running
343
00:18:29,247 --> 00:18:30,015
Like chasing
344
00:18:30,271 --> 00:18:35,135
After a pretty much and that will only happen if he's close enough to us and it's just a lie
345
00:18:35,647 --> 00:18:39,487
Heighten the tension and make the player panic and run away over
346
00:18:39,743 --> 00:18:41,535
Can I pay my Deezer monster
347
00:18:42,559 --> 00:18:44,863
Anyway in this walking part
348
00:18:45,119 --> 00:18:49,983
We need to make sure that his speed is at the right one that's set agent maximum speed
349
00:18:51,007 --> 00:18:53,055
I'm right here so we like that
350
00:18:53,311 --> 00:18:55,103
And they're not set it to one
351
00:18:55,615 --> 00:18:57,919
And I think that's all we need to do for this
352
00:18:58,175 --> 00:18:59,455
First iteration
353
00:19:00,735 --> 00:19:01,759
If I hit play
354
00:19:02,015 --> 00:19:04,831
The enemy should know exactly where I am and just
355
00:19:06,111 --> 00:19:11,231
And I know you're probably thinking ok I do stealth elements get me my baby that hides behind a tree
356
00:19:11,743 --> 00:19:17,375
This is where the simple enemy comes then we don't have any of those features and it's just impossible to do
357
00:19:17,631 --> 00:19:19,167
Like in such a short time frame
358
00:19:19,423 --> 00:19:20,703
In the finish the game and
359
00:19:21,471 --> 00:19:22,495
So that's the
360
00:19:22,751 --> 00:19:26,847
I'm doing this enemy will always be slowly walking towards you no matter what
361
00:19:27,359 --> 00:19:33,503
And I know that seems kind of unfair but honestly like players not really noticed that just so just know someone is kind of Walker
362
00:19:34,015 --> 00:19:35,807
Gingerly towards their Direction
363
00:19:36,063 --> 00:19:38,623
And I still think it will get the job done it will add 10
364
00:19:39,647 --> 00:19:40,927
What's it playing to happen
365
00:19:42,463 --> 00:19:43,231
Play weather anime
366
00:19:43,999 --> 00:19:46,815
What kind of creepy actually did I put on
367
00:19:47,583 --> 00:19:50,655
You should be working towards me of
368
00:19:50,911 --> 00:19:52,447
Actually scared me
369
00:19:52,703 --> 00:19:55,007
Who is category vehicle is in a t pose
370
00:19:55,775 --> 00:19:58,079
You see him walking towards me
371
00:19:59,103 --> 00:20:03,199
Honestly kinda scared because I did not know where he was
372
00:20:03,455 --> 00:20:06,015
CR simple as this like freaks somebody else
373
00:20:07,039 --> 00:20:09,343
80 poses Creepy by itself
374
00:20:10,367 --> 00:20:12,671
I'm obviously we need to add animations but
375
00:20:13,183 --> 00:20:15,999
It's working she knows how he rotates like and how
376
00:20:16,255 --> 00:20:20,607
Look towards me and he is really slow but getting other variables we changed when were
377
00:20:21,887 --> 00:20:22,655
Alright cool
378
00:20:23,423 --> 00:20:24,447
It's fine tune
379
00:20:24,959 --> 00:20:28,031
Alright we need to add animations and when animator control
380
00:20:28,287 --> 00:20:30,591
Because I can see how this control spot is empty
381
00:20:31,103 --> 00:20:32,127
What's right
382
00:20:32,383 --> 00:20:33,663
In the Avatar folder
383
00:20:34,431 --> 00:20:35,199
Go to create
384
00:20:35,711 --> 00:20:37,759
How much go to animatorcontroller
385
00:20:38,271 --> 00:20:39,295
And I'll just call it
386
00:20:40,319 --> 00:20:40,831
Human
387
00:20:41,855 --> 00:20:42,367
That sounds good
388
00:20:43,903 --> 00:20:47,487
I clicked on a McGinn and drag and drop it right there
389
00:20:47,743 --> 00:20:48,255
And then
390
00:20:48,511 --> 00:20:50,047
We need a special window
391
00:20:50,815 --> 00:20:53,887
Let's go to window and I got it animation and little
392
00:20:54,143 --> 00:20:54,911
Animator
393
00:20:55,679 --> 00:20:59,519
Ok we're looking at our animatorcontroller which has nothing here so
394
00:20:59,775 --> 00:21:03,871
Alright this is where we set up animations but first we need an animation stay
395
00:21:04,383 --> 00:21:05,663
Right click here
396
00:21:05,919 --> 00:21:07,967
Go to create state and click empty
397
00:21:08,479 --> 00:21:09,503
How much is cordless
398
00:21:09,759 --> 00:21:10,271
Walk
399
00:21:11,551 --> 00:21:15,903
And then we are going to need another one and that's just call Will call it run
400
00:21:16,928 --> 00:21:17,440
Click on
401
00:21:18,720 --> 00:21:21,536
You actually in playmaker will call the States
402
00:21:21,792 --> 00:21:25,376
By their name so that this is important I have to go back to it later
403
00:21:25,888 --> 00:21:28,704
And then we need an animation and I think it comes
404
00:21:28,960 --> 00:21:31,520
With all the information you have your back to human
405
00:21:31,776 --> 00:21:32,544
Go to animation
406
00:21:33,056 --> 00:21:33,824
Here we go
407
00:21:34,080 --> 00:21:36,128
Jag we have run weird walk
408
00:21:36,384 --> 00:21:41,248
I think the F stands for forward so walk forward and walk babies walk backwards
409
00:21:41,760 --> 00:21:45,088
What's click on walk right here I'm just going to drag and drop
410
00:21:47,136 --> 00:21:48,416
If you can do that
411
00:21:48,672 --> 00:21:51,744
The actual animations to hit the little arrow to expand
412
00:21:52,256 --> 00:21:55,328
And here it is that's what we want this is the way they pack
413
00:21:55,584 --> 00:21:56,096
What's the files
414
00:21:56,352 --> 00:22:01,216
This is also important to make sure this lips also play ones and then it won't loop anymore
415
00:22:01,984 --> 00:22:03,776
So go to click on walk f
416
00:22:04,032 --> 00:22:05,056
Go to animation
417
00:22:05,824 --> 00:22:08,128
I'm right here I think we have the choice to sable
418
00:22:08,384 --> 00:22:08,896
The time
419
00:22:09,408 --> 00:22:14,784
And again this is a lot at can it overwhelming I don't want you to worry about it because all we need to do is just make
420
00:22:15,552 --> 00:22:16,064
And
421
00:22:16,320 --> 00:22:17,856
This is really like
422
00:22:18,112 --> 00:22:21,184
Lots of tools when you're making custom animations to make sure that
423
00:22:21,440 --> 00:22:23,232
They look properly in
424
00:22:23,488 --> 00:22:27,840
Animation which means like the movement speed is baked into the file
425
00:22:28,096 --> 00:22:29,632
That's 2
426
00:22:29,888 --> 00:22:30,400
Ok
427
00:22:30,656 --> 00:22:32,704
Where is wanted to move into look like his
428
00:22:32,960 --> 00:22:33,984
That's all you have to do
429
00:22:34,496 --> 00:22:35,008
People
430
00:22:35,776 --> 00:22:37,056
Apply
431
00:22:37,312 --> 00:22:38,080
So now it should
432
00:22:38,336 --> 00:22:41,664
Before I forget list do that to run as well run
433
00:22:41,920 --> 00:22:42,688
4 and 4
434
00:22:43,200 --> 00:22:44,480
Hit Luke time
435
00:22:45,504 --> 00:22:46,784
Scroll down and then
436
00:22:48,320 --> 00:22:51,392
Ok I must go back to her animatorcontroller so walk
437
00:22:51,904 --> 00:22:52,416
Speed
438
00:22:53,952 --> 00:22:54,976
And then run
439
00:22:55,232 --> 00:22:57,792
Make sure that we do the same thing as go to run f
440
00:22:58,560 --> 00:23:00,352
Hit the little arrow and then hit the motion
441
00:23:01,632 --> 00:23:02,400
Whatever that is
442
00:23:03,936 --> 00:23:05,728
We have two different animations
443
00:23:06,240 --> 00:23:09,056
And basically all this entries start right here
444
00:23:09,312 --> 00:23:14,688
That's basically saying it the fault that if you just spun it without doing any colour or play my corrections
445
00:23:14,944 --> 00:23:16,480
You will always just be walking
446
00:23:16,992 --> 00:23:18,784
And we had an enemy
447
00:23:19,040 --> 00:23:24,928
That Mike would stay still I want that because then it was spun standing still and help you he would be walking
448
00:23:25,440 --> 00:23:26,976
In that case I want I do
449
00:23:27,232 --> 00:23:28,000
Right here
450
00:23:28,512 --> 00:23:29,792
I'm just chilling
451
00:23:30,560 --> 00:23:33,888
But he's always going to be working that's how simple our game is
452
00:23:34,400 --> 00:23:35,936
Just always walking or running
453
00:23:36,192 --> 00:23:39,776
That is only two choices alright back to scene
454
00:23:40,288 --> 00:23:44,896
Animals click on our enemy right here and let's go to RSM at it
455
00:23:45,664 --> 00:23:48,992
And soul while he's walking and searching for us
456
00:23:49,248 --> 00:23:50,528
What's good action browser
457
00:23:51,552 --> 00:23:53,344
Titan animator play
458
00:23:54,112 --> 00:23:55,136
The double click that
459
00:23:56,160 --> 00:23:58,720
And you sauna that us and remember alike
460
00:23:58,976 --> 00:24:02,816
The anywhere controller is next to the fsm so that's why this will work
461
00:24:03,328 --> 00:24:04,864
In the state name is what
462
00:24:05,376 --> 00:24:06,656
That's what we called it early
463
00:24:06,912 --> 00:24:13,056
And I think that's all we need to do for that should we make him run shall we shall we programme that stuff alright so we're going to need it
464
00:24:13,312 --> 00:24:15,360
Event which means we need like
465
00:24:15,872 --> 00:24:18,688
A little sphere around the enemy that tells us he
466
00:24:18,944 --> 00:24:21,248
Is close enough to like basically SIA
467
00:24:21,760 --> 00:24:23,040
And he's running after us
468
00:24:24,064 --> 00:24:25,600
So let's get out of here real quick
469
00:24:25,856 --> 00:24:26,880
And let's
470
00:24:27,136 --> 00:24:28,672
A sphere Collider
471
00:24:28,928 --> 00:24:29,440
What's the Titan
472
00:24:29,952 --> 00:24:31,232
H vehicle ID
473
00:24:31,488 --> 00:24:33,536
And it's kind of small so let's make
474
00:24:33,792 --> 00:24:36,608
It much bigger is here it is on the bottom and just go the radius
475
00:24:37,632 --> 00:24:38,656
So we basically
476
00:24:39,168 --> 00:24:40,960
Any can tower block an hour or less
477
00:24:41,216 --> 00:24:42,496
Are lens flares
478
00:24:43,520 --> 00:24:44,544
What's the direct number for
479
00:24:44,800 --> 00:24:46,848
Was got a layer and do
480
00:24:48,384 --> 00:24:49,408
Anderson now this
481
00:24:51,200 --> 00:24:51,712
Merida
482
00:24:51,968 --> 00:24:57,600
That's what I wanted we don't want to be an actual Collider this is a trigger Collider cos I'm only using it in school
483
00:24:58,112 --> 00:25:02,464
So hit this is Trigger so that the player can go through it won't be an actual physical wall
484
00:25:02,720 --> 00:25:04,768
We need to decide how close
485
00:25:05,024 --> 00:25:06,304
Our enemy should be before it
486
00:25:06,560 --> 00:25:07,584
Rhino tube
487
00:25:07,840 --> 00:25:08,608
The terminator
488
00:25:09,888 --> 00:25:10,656
Small wine glass
489
00:25:12,448 --> 00:25:18,592
I want this robots to be kind of stupid but I wanted to be like simple machines I don't want to be too smart but I don't
490
00:25:18,848 --> 00:25:24,992
Me too stupid and so I gave you as I cried in front of you then this is like the area where would trigger and say I'm running
491
00:25:25,248 --> 00:25:31,392
What do you mean you're in trouble let's go to bachata fsm and then basically we need a trigger of
492
00:25:31,904 --> 00:25:32,928
What's the type in Trigger
493
00:25:33,952 --> 00:25:34,720
Event
494
00:25:34,976 --> 00:25:35,488
Click that
495
00:25:35,744 --> 00:25:40,352
This is the you sauna so Collide tag and I got to be careful as well like a big bug could happen
496
00:25:40,864 --> 00:25:44,960
We only want him to run if a player is within that sphere
497
00:25:45,728 --> 00:25:46,752
So we can start playing
498
00:25:47,008 --> 00:25:53,152
If we are unlucky and like there is like a certain rock that came into approximately then yeah he start running I'll be really weird
499
00:25:53,408 --> 00:25:53,920
Weird bug
500
00:25:54,176 --> 00:25:56,480
Where is one two player to be the one that triggers this
501
00:25:56,992 --> 00:25:58,016
And then send event
502
00:25:58,272 --> 00:26:00,064
I was just going to add transition
503
00:26:00,320 --> 00:26:03,392
Ok and it's a centre van what make a new event right here
504
00:26:03,904 --> 00:26:05,184
I was just type in
505
00:26:05,440 --> 00:26:06,464
Seaview
506
00:26:06,976 --> 00:26:09,536
That's artificial intelligence for like it's close enough
507
00:26:09,792 --> 00:26:10,560
And he's running
508
00:26:11,328 --> 00:26:13,376
Remember we need to add that transition
509
00:26:13,632 --> 00:26:14,656
Forgot to add transition
510
00:26:14,912 --> 00:26:15,680
Seizure
511
00:26:16,448 --> 00:26:20,288
When are player is inside the circle it will go to a new Star
512
00:26:21,056 --> 00:26:22,336
So what's holding control
513
00:26:22,592 --> 00:26:23,360
Drag and drop
514
00:26:24,640 --> 00:26:25,920
Let's call this day
515
00:26:26,432 --> 00:26:26,944
Run
516
00:26:27,200 --> 00:26:27,712
After
517
00:26:28,480 --> 00:26:28,992
Okra
518
00:26:29,760 --> 00:26:30,272
This is going to be
519
00:26:30,528 --> 00:26:32,576
No I actually need a lot of the same state
520
00:26:32,832 --> 00:26:34,880
So the save time I'm just going to
521
00:26:35,136 --> 00:26:39,488
Quick all these things I'm just holding on the control and just grabbing all of them
522
00:26:40,000 --> 00:26:41,280
And then you can cook on here
523
00:26:41,536 --> 00:26:43,072
Click on copy selected
524
00:26:44,352 --> 00:26:47,936
Now this is just a safe time you paste actions and then we go
525
00:26:48,704 --> 00:26:51,264
So it's still in his new state he still chasing you
526
00:26:51,520 --> 00:26:55,104
But the main difference is that he's going to be much faster let's do
527
00:26:57,152 --> 00:27:00,224
I don't know what that means but it's going to be going at 5
528
00:27:00,480 --> 00:27:00,992
Add you
529
00:27:01,504 --> 00:27:03,552
And then my to play remember it
530
00:27:03,808 --> 00:27:07,136
The animation we we named the state was called run
531
00:27:08,160 --> 00:27:11,488
And then in this trigger van it's not he sees you
532
00:27:11,744 --> 00:27:12,256
It's like
533
00:27:12,512 --> 00:27:16,608
It's a kind of a different kind of just to stay organised and let's make a Newham
534
00:27:17,120 --> 00:27:18,144
I'm going to say
535
00:27:19,424 --> 00:27:20,704
Player go away
536
00:27:22,240 --> 00:27:23,008
Double right click
537
00:27:23,264 --> 00:27:25,312
Translation player got away and then I'm just
538
00:27:25,824 --> 00:27:26,592
Dragon
539
00:27:26,848 --> 00:27:27,872
Drop to walk
540
00:27:28,896 --> 00:27:31,200
Enemy will only be one of these two
541
00:27:31,712 --> 00:27:34,016
Walking and searching or running after you
542
00:27:35,296 --> 00:27:36,576
Shall we try
543
00:27:36,832 --> 00:27:40,928
Shall we see if it'll run after us and if we can skip it might be too fast and we won't be able to
544
00:27:41,440 --> 00:27:41,952
Bus tracker
545
00:27:45,792 --> 00:27:46,816
Ok can I see him
546
00:27:48,352 --> 00:27:50,144
If I walk 4 really should start run
547
00:27:52,960 --> 00:27:53,728
Oh no
548
00:27:54,496 --> 00:27:56,288
How is going to come after me
549
00:27:57,824 --> 00:27:58,336
Turn the door
550
00:27:58,592 --> 00:27:59,104
Like that
551
00:27:59,872 --> 00:28:03,456
If I get father enough away he should stop run
552
00:28:07,808 --> 00:28:08,576
Excel tick
553
00:28:10,112 --> 00:28:13,184
So yeah he's stuck on player Got Away
554
00:28:14,464 --> 00:28:19,840
Right here it says ontriggerenter while you're not answering that you're already in it so you need to say on trigger x
555
00:28:21,632 --> 00:28:22,144
Exit
556
00:28:22,400 --> 00:28:26,752
Like I got close and he just started running and we can have some sound effects
557
00:28:27,264 --> 00:28:30,336
And maybe make that spotlight on front in the front of his head like
558
00:28:30,592 --> 00:28:32,896
Look right at you I think it'll be a really power
559
00:28:34,432 --> 00:28:40,576
Ok congratulations you have an enemy that will always be slowly walking towards you and it's Canon
560
00:28:40,832 --> 00:28:46,976
Where can I came from that movie it follows that horror movie where there's like this ghost creature that's always
561
00:28:47,232 --> 00:28:48,256
It's not very far
562
00:28:48,768 --> 00:28:50,816
What is just always going after you
563
00:28:51,328 --> 00:28:57,216
And I just it's simple is easy to program and it's still have the tension we wanted to me this was a wise shortcut
564
00:28:57,728 --> 00:29:03,872
That like may be compromised my original vision but it's fast and it's still gets the job done so I think you'll be cool
565
00:29:04,128 --> 00:29:07,200
The slowly introduce more more enemies as the game progresses
566
00:29:07,456 --> 00:29:12,832
Ok I want to add a spotlight and I want this this weird creepy robot
567
00:29:13,088 --> 00:29:13,856
Just to be
568
00:29:14,112 --> 00:29:17,440
Constantly like flickering the searchlight in front of his head
569
00:29:17,696 --> 00:29:19,744
Around the words are around the
570
00:29:20,000 --> 00:29:22,560
Just searching for this player the
571
00:29:23,328 --> 00:29:24,864
So I got a biometric
572
00:29:25,120 --> 00:29:30,496
Thing I'm first let's do an actual spotlight cos I think it would be such a cool feeling for like this
573
00:29:30,752 --> 00:29:32,288
Robot the be chasing you
574
00:29:32,544 --> 00:29:37,664
And then like the spotlight like is like shining on you and you don't know how close he is and I just freaking you
575
00:29:38,176 --> 00:29:39,968
So I think I'll be able look
576
00:29:40,480 --> 00:29:41,760
So let's go to game objects
577
00:29:42,016 --> 00:29:42,528
Go to light
578
00:29:42,784 --> 00:29:44,064
Let's do a spot
579
00:29:45,344 --> 00:29:48,160
How much dragon all the way to your enemy
580
00:29:48,416 --> 00:29:50,208
Break here on the main
581
00:29:51,232 --> 00:29:53,536
Ok can a shining
582
00:29:53,792 --> 00:29:55,584
W and move him
583
00:29:55,840 --> 00:29:57,376
I think the simplest way to do it
584
00:29:57,632 --> 00:29:58,656
Keeping in front of his face
585
00:29:59,168 --> 00:30:01,472
I think you can try to rotate
586
00:30:03,776 --> 00:30:04,288
I might see her
587
00:30:04,544 --> 00:30:05,056
I want
588
00:30:05,824 --> 00:30:06,592
I wanted to be
589
00:30:07,104 --> 00:30:08,128
Let's make the range
590
00:30:09,152 --> 00:30:09,664
Let's make it
591
00:30:09,920 --> 00:30:12,480
How far the Range like 65
592
00:30:12,736 --> 00:30:14,784
Anglers make it pretty wide yeah
593
00:30:15,552 --> 00:30:16,576
What's do around for
594
00:30:16,832 --> 00:30:17,344
5
595
00:30:18,624 --> 00:30:20,928
And I don't wanna pure white remember which one
596
00:30:21,184 --> 00:30:22,208
Get that Style
597
00:30:22,976 --> 00:30:24,512
And I'm just gonna use the colour picker
598
00:30:25,280 --> 00:30:27,584
Maybe some like the pink writer something
599
00:30:28,608 --> 00:30:29,120
Asado
600
00:30:29,376 --> 00:30:30,144
I think I will
601
00:30:30,656 --> 00:30:33,728
It is a real timeline let's make it a little brighter
602
00:30:33,984 --> 00:30:34,496
Like one
603
00:30:36,032 --> 00:30:37,568
And I do want Shadows
604
00:30:38,848 --> 00:30:42,688
I think we'll work I think it will cast a shadow that shining on a tree or something
605
00:30:42,944 --> 00:30:43,968
Which car park really cool
606
00:30:44,224 --> 00:30:45,248
And then what's add
607
00:30:45,504 --> 00:30:46,016
Where
608
00:30:46,272 --> 00:30:47,040
So that
609
00:30:47,296 --> 00:30:49,856
The player will look straight at the enemy but I'll be like
610
00:30:50,112 --> 00:30:51,904
Big bright shiny thing
611
00:30:52,416 --> 00:30:52,928
Do you want
612
00:30:53,184 --> 00:30:56,000
Distinguish any features flares small
613
00:30:57,024 --> 00:30:57,536
Something
614
00:30:58,560 --> 00:30:59,840
Position at mine on his face
615
00:31:01,376 --> 00:31:03,168
I think that affected by far
616
00:31:04,960 --> 00:31:09,312
Alright that's looking good I want to use that volumetric light idownloader
617
00:31:09,568 --> 00:31:10,848
Search go back to assets
618
00:31:11,616 --> 00:31:12,384
I've got a V line
619
00:31:12,896 --> 00:31:14,432
I want to go to scenes
620
00:31:14,688 --> 00:31:15,712
And I actually I'll
621
00:31:15,968 --> 00:31:22,112
These are ready these seen these are demo scenes and there's not really good prefab I can just drop in too much work so I'm just gonna
622
00:31:22,368 --> 00:31:25,440
Copy and paste one that's already set up in these demo scene
623
00:31:26,208 --> 00:31:27,488
What's got a light types
624
00:31:28,000 --> 00:31:28,768
Save
625
00:31:29,024 --> 00:31:30,304
Weather Prague
626
00:31:31,328 --> 00:31:32,608
And then I'm just going to hit Earth
627
00:31:33,888 --> 00:31:34,400
Oh yeah
628
00:31:35,936 --> 00:31:39,520
I don't want to point my I don't want this window light I want to Spar
629
00:31:40,032 --> 00:31:42,848
We already have the actual light we just need
630
00:31:43,104 --> 00:31:44,128
Is volumetric
631
00:31:44,384 --> 00:31:44,896
Things right here
632
00:31:46,176 --> 00:31:51,808
And so it's called v-lite zero and this is in the light types demoscene so I'm going to do I'm just going to go to bed
633
00:31:53,856 --> 00:31:55,904
We go back to our scene
634
00:31:56,160 --> 00:31:57,440
I think is insane
635
00:31:57,696 --> 00:31:58,720
Samples
636
00:31:59,232 --> 00:32:00,256
Should name at something
637
00:32:01,792 --> 00:32:03,584
Go find a robot
638
00:32:04,096 --> 00:32:05,120
Can I click on here in the head
639
00:32:05,632 --> 00:32:07,168
And then I'm just going to hit
640
00:32:07,680 --> 00:32:09,216
Ctrl-v
641
00:32:09,984 --> 00:32:16,128
They get all the way over there so I'm just gonna go over here and then I'm going to hit I have it selected I'm going to take control
642
00:32:18,432 --> 00:32:23,040
Now cool we got a little bit of i m quite actually we have to put this on
643
00:32:24,576 --> 00:32:28,160
Let's put it on our robot and put it under spotlight
644
00:32:28,672 --> 00:32:34,816
And we can actually zero without so it's like right next to the spotlight so just got it xy&z and hit 0
645
00:32:35,328 --> 00:32:36,608
Turn off the rotation
646
00:32:37,376 --> 00:32:37,888
Erika
647
00:32:38,144 --> 00:32:41,216
This is much too small to make this much bigger
648
00:32:41,472 --> 00:32:43,520
Give us elves more space right here
649
00:32:44,544 --> 00:32:45,568
And I think
650
00:32:46,080 --> 00:32:47,872
How can I make this bigger I remember
651
00:32:48,128 --> 00:32:48,896
Slices
652
00:32:49,152 --> 00:32:50,688
How do I make it brighter the light
653
00:32:50,944 --> 00:32:55,040
What's the player this is this is how I make game that mess around with the staff
654
00:32:55,296 --> 00:32:58,880
Here it is spotlight settings right here so let's make the range
655
00:32:59,648 --> 00:33:00,160
What's the score
656
00:33:01,440 --> 00:33:02,720
And spot near
657
00:33:04,000 --> 00:33:04,768
Angle
658
00:33:06,560 --> 00:33:08,864
I just want to beat the player be able to see you like
659
00:33:09,120 --> 00:33:09,632
The light
660
00:33:09,888 --> 00:33:11,424
Like moving around in the door
661
00:33:11,680 --> 00:33:12,192
I think
662
00:33:12,960 --> 00:33:13,472
I think
663
00:33:13,728 --> 00:33:16,032
I think we can just the
664
00:33:16,800 --> 00:33:18,080
Where is it the slices
665
00:33:18,336 --> 00:33:19,104
To make it a little more
666
00:33:19,360 --> 00:33:20,384
Higher quality
667
00:33:22,688 --> 00:33:23,200
Oh that's cool
668
00:33:24,736 --> 00:33:28,576
We can increase the rent on at the be like a big liar you can see from across the
669
00:33:29,856 --> 00:33:30,368
Oh yeah
670
00:33:30,624 --> 00:33:31,392
Yes
671
00:33:32,416 --> 00:33:33,184
That's pretty cool
672
00:33:34,208 --> 00:33:38,048
So we just see what it looks like now if that any like tween animations
673
00:33:38,304 --> 00:33:39,072
WhatsApp WhatsApp
674
00:33:43,424 --> 00:33:47,008
Like someone like looking towards me
675
00:33:47,520 --> 00:33:50,080
Ibiza clothes for power start running
676
00:33:51,616 --> 00:33:52,640
Tube
677
00:33:55,712 --> 00:33:57,248
But nothing will happen as you know
678
00:33:59,296 --> 00:34:00,576
Let all the doll Hill do
679
00:34:01,344 --> 00:34:04,416
Ok but I'm going to have a kill screen you'll have them
680
00:34:04,672 --> 00:34:05,440
Killers
681
00:34:05,696 --> 00:34:08,512
You just reset the level if you catch us
682
00:34:09,536 --> 00:34:13,120
What's decrease the intensity I think that was a little too bright
683
00:34:13,376 --> 00:34:14,144
The linear
684
00:34:14,656 --> 00:34:16,448
Attenuation I guess
685
00:34:16,960 --> 00:34:18,240
What is a constant
686
00:34:19,264 --> 00:34:20,288
It doesn't
687
00:34:21,568 --> 00:34:23,872
Feels like right behind you
688
00:34:24,384 --> 00:34:24,896
That looks good
689
00:34:26,176 --> 00:34:31,040
I'm just messing around I don't know what I'm doing I'm just making sure it look I don't want it to break
690
00:34:31,296 --> 00:34:36,416
Can I think of the course you can barely just see like this creature behind that bright light in front of it
691
00:34:37,184 --> 00:34:43,072
That's looking pretty cool and looks big I think could see you like this light is biometric shaft of light in the
692
00:34:43,840 --> 00:34:45,120
Yeah it's pretty cool
693
00:34:45,376 --> 00:34:47,168
Let's add some
694
00:34:47,424 --> 00:34:49,472
Scandyna searching animation
695
00:34:50,240 --> 00:34:51,520
Serena got a spotlight
696
00:34:51,776 --> 00:34:53,056
Am I going to go to Al Capone
697
00:34:53,312 --> 00:34:54,592
Typing FSR
698
00:34:54,848 --> 00:34:55,872
How to quick edit
699
00:34:56,384 --> 00:35:02,528
So basically I need the surface and the communicate with her player fsm at up here these two will go hand
700
00:35:02,784 --> 00:35:08,928
And so we need to be able to communicate between I meant to do that we're going to be doing global Events / global
701
00:35:09,184 --> 00:35:14,304
Transitions and suggest the cleaning up I could have done everything in here I think I could have but
702
00:35:14,560 --> 00:35:20,448
I want to show you guys how to communicate between fsm so that's that's really important right so for this day
703
00:35:20,704 --> 00:35:21,984
Let's just call this
704
00:35:22,496 --> 00:35:23,776
I'm waiting
705
00:35:24,544 --> 00:35:28,384
And where can I do around my inner just to make this creature seem pretty organic
706
00:35:29,152 --> 00:35:30,176
So let's go
707
00:35:30,944 --> 00:35:33,248
Action browser and click random
708
00:35:33,760 --> 00:35:35,040
In a random Way
709
00:35:35,808 --> 00:35:38,624
And I wanna way I want this enemy
710
00:35:38,880 --> 00:35:40,928
From 1 to 6
711
00:35:41,440 --> 00:35:41,952
That song
712
00:35:42,720 --> 00:35:45,024
How to make a new event on I just say
713
00:35:45,280 --> 00:35:46,304
Done waiting
714
00:35:46,816 --> 00:35:48,608
Remember with the added here right click
715
00:35:48,864 --> 00:35:50,400
At transition done waiting
716
00:35:51,936 --> 00:35:52,448
Control
717
00:35:52,704 --> 00:35:53,472
What's the new state
718
00:35:54,496 --> 00:35:56,288
And this is where we animate the
719
00:35:56,800 --> 00:35:57,824
Let's just call it
720
00:35:58,336 --> 00:35:59,104
Movelite
721
00:36:00,384 --> 00:36:04,224
This is wrestling and have two separate fsms like inside
722
00:36:04,480 --> 00:36:05,248
At the same
723
00:36:05,504 --> 00:36:07,296
Window in explain that in a
724
00:36:07,808 --> 00:36:09,344
This is the one where he's just searching
725
00:36:09,600 --> 00:36:12,416
And so this is him just looking around he doesn't know where we are
726
00:36:12,928 --> 00:36:17,280
There will be a different type of actions when he sees us in a Mark sent us
727
00:36:17,536 --> 00:36:18,304
I just Chase
728
00:36:18,560 --> 00:36:19,840
That's all we have to worry
729
00:36:20,608 --> 00:36:22,144
So under movelite
730
00:36:22,400 --> 00:36:26,240
This is what we're going to do some random numbers and we just gonna
731
00:36:26,496 --> 00:36:28,288
Change it every time the robe
732
00:36:28,544 --> 00:36:29,056
That's looking around
733
00:36:29,824 --> 00:36:30,336
So
734
00:36:30,592 --> 00:36:32,128
Let's go type in
735
00:36:32,384 --> 00:36:33,408
Random float
736
00:36:34,944 --> 00:36:36,992
I'm going to add this twice actually
737
00:36:37,248 --> 00:36:38,528
What's the double click twice
738
00:36:39,552 --> 00:36:43,648
Actually I think we should change the speed a little bit to that might be cool
739
00:36:43,904 --> 00:36:47,744
Beginner making feel like a living creature or like I guess I live in robot
740
00:36:48,000 --> 00:36:52,864
I want these random numbers to call out with how fast and what direction he moves his life
741
00:36:53,376 --> 00:36:53,888
Pretty much
742
00:36:54,144 --> 00:36:59,008
And then what else do we need I'm just going to get it ready for you and wrestler going to do a challenge slide
743
00:36:59,264 --> 00:37:00,544
What do sativex
744
00:37:00,800 --> 00:37:01,312
3
745
00:37:01,568 --> 00:37:02,080
Xyz
746
00:37:03,104 --> 00:37:06,944
And then remember our Queen's that we downloaded we need to go to
747
00:37:07,200 --> 00:37:07,968
Queen
748
00:37:08,224 --> 00:37:08,992
Rotation
749
00:37:09,248 --> 00:37:11,040
What's going to move the light
750
00:37:12,320 --> 00:37:15,648
You can laugh quicker on the gear in the same infection the bottom
751
00:37:16,416 --> 00:37:20,768
And then you can also drag and drop on I just want to organise it for my own brainsick
752
00:37:21,024 --> 00:37:27,168
We need to pick the right numbers that make sense for this creature like what direction and how fast you can move
753
00:37:27,424 --> 00:37:27,936
The light
754
00:37:28,960 --> 00:37:33,056
I want to be a Chancellor but I'm just gonna get ready and what's name is variable
755
00:37:33,312 --> 00:37:34,336
What's called x
756
00:37:35,104 --> 00:37:36,384
Rotation random
757
00:37:37,408 --> 00:37:38,688
Let's call this one
758
00:37:39,200 --> 00:37:40,736
Why rotation
759
00:37:41,760 --> 00:37:42,528
Random
760
00:37:43,296 --> 00:37:45,088
And what's called this one new variable
761
00:37:45,856 --> 00:37:46,880
Let's call this one
762
00:37:47,392 --> 00:37:48,672
Random speed
763
00:37:51,488 --> 00:37:57,632
So basically I want to set the back to 3 and it's just because only unity can understand rotation variable
764
00:37:57,888 --> 00:37:59,680
Three numbers in one which is called a vector
765
00:38:00,448 --> 00:38:05,312
So in expert let's say this is extrication random
766
00:38:05,568 --> 00:38:08,896
And then in the Y let's do why rotation random
767
00:38:09,152 --> 00:38:11,200
And then see this is irrelevant
768
00:38:11,456 --> 00:38:12,736
So what just do 0
769
00:38:12,992 --> 00:38:13,504
For that
770
00:38:13,760 --> 00:38:16,320
Anyone use the name this obviously was called this
771
00:38:17,344 --> 00:38:18,112
Flashlight
772
00:38:19,648 --> 00:38:20,672
Rotation
773
00:38:22,976 --> 00:38:23,744
And then we can
774
00:38:24,000 --> 00:38:26,304
Make it the same value it doesn't matter
775
00:38:26,816 --> 00:38:32,960
And then going to tween rotation we need to do you sauna and Kurt ation from like the where is currently at
776
00:38:33,216 --> 00:38:37,824
And to we want us to be local and then has to do with like local and world space
777
00:38:38,080 --> 00:38:40,128
Like triggered right here you can change it
778
00:38:41,152 --> 00:38:47,296
Just what we need is just to be like it's a separate thing and that is not affected by where the guys walking in
779
00:38:47,552 --> 00:38:48,832
That would be world
780
00:38:49,344 --> 00:38:53,440
Is it just local position because I lied is a child of the road
781
00:38:54,208 --> 00:38:55,744
Just local
782
00:38:56,000 --> 00:38:59,328
In the night here it's saying 000 we don't want that
783
00:38:59,840 --> 00:39:04,192
We wanted to grab those random numbers that We Created in the flashlight rotation
784
00:39:04,704 --> 00:39:10,848
Which is right here and then I'll be each type I want to do robotics I just I don't want it to be any easy don't want to have a
785
00:39:11,104 --> 00:39:11,616
Smooth
786
00:39:11,872 --> 00:39:13,152
Transition I just want to be
787
00:39:15,200 --> 00:39:19,040
Just a robot light moving around in the time we made a variable for
788
00:39:19,808 --> 00:39:21,856
Let's call this random speed
789
00:39:22,112 --> 00:39:28,256
And then after it's done animating we need to just do actually washes to finished so if you right-click
790
00:39:28,512 --> 00:39:29,024
First
791
00:39:29,280 --> 00:39:32,864
And the finish is just a default like move onto the next thing
792
00:39:33,376 --> 00:39:35,424
We can select the right here under fine
793
00:39:35,936 --> 00:39:36,448
Finished
794
00:39:36,704 --> 00:39:39,776
That's connecting and remember we are connected right here
795
00:39:40,544 --> 00:39:42,080
So yeah this is a look
796
00:39:42,336 --> 00:39:46,688
Wait random line from an amount that's one the 6 seconds long
797
00:39:46,944 --> 00:39:52,064
And then I move a light to a random position that will tell it using his minimum and maximum
798
00:39:52,832 --> 00:39:54,624
So this is the challenge slide
799
00:39:55,136 --> 00:39:58,464
I want you to mess around with the robot
800
00:39:58,976 --> 00:40:00,256
And Figaro
801
00:40:00,768 --> 00:40:05,376
White like the parameters or like what the minimum and maximum should be for each
802
00:40:06,400 --> 00:40:10,752
I want you to play around with the light and find out what's realistic for
803
00:40:11,008 --> 00:40:12,288
Robot to be point
804
00:40:12,800 --> 00:40:16,128
He's like a bull looking around and like searching for you through the
805
00:40:16,384 --> 00:40:16,896
It's pretty much
806
00:40:17,408 --> 00:40:22,272
So for instance make sure you're on global settings right hearing that will handle
807
00:40:22,784 --> 00:40:28,160
Like if you were to click the handle bike how far up would you want to go what's the maximum
808
00:40:28,672 --> 00:40:30,464
And then what is the minimum
809
00:40:30,976 --> 00:40:33,792
I do want one like look behind you I guess he could
810
00:40:34,048 --> 00:40:36,608
How much you use your creative judgement to make something else
811
00:40:37,376 --> 00:40:41,216
Basically we need three types of random numbers and you need this
812
00:40:41,472 --> 00:40:43,264
Like the minimum and maximum for
813
00:40:43,776 --> 00:40:45,824
So here is the why
814
00:40:46,080 --> 00:40:50,688
Do you want to go behind you want just a like kind of like side the side right
815
00:40:50,944 --> 00:40:53,760
And you can tell like it says like -90
816
00:40:54,016 --> 00:40:55,552
Over here now
817
00:40:55,808 --> 00:40:57,856
That could be the minimum and maximum you
818
00:40:58,624 --> 00:41:02,208
NN4 the speed again I could be something like you just make him like
819
00:41:02,720 --> 00:41:07,840
You can make the robot feel like it went really fast or maybe it will take a really long time
820
00:41:08,352 --> 00:41:11,424
I like look at a certain Direction and that's just the animation there
821
00:41:11,680 --> 00:41:12,192
The light
822
00:41:12,448 --> 00:41:13,216
That pretty
823
00:41:13,728 --> 00:41:15,776
Say I have some information on the screen
824
00:41:16,800 --> 00:41:22,432
I want you to input those variables and then when we come back I'll show you how I did it alright you can pause the video right now
825
00:41:24,736 --> 00:41:26,784
Hi guys how did it go
826
00:41:27,040 --> 00:41:33,184
Is always the master sad but I will show the numbers I chose I did for the X I did 9 of 32
827
00:41:33,440 --> 00:41:36,000
Play for the wide and then -50 and 50
828
00:41:36,256 --> 00:41:41,632
In through the speed I did like 0.75 but I think you know 0.75 seconds to 3
829
00:41:41,888 --> 00:41:42,656
So in this case
830
00:41:42,912 --> 00:41:45,728
It will randomly generate a number between these
831
00:41:45,984 --> 00:41:46,752
Animal anime
832
00:41:47,264 --> 00:41:49,824
That's what we using we using these variables that change
833
00:41:50,336 --> 00:41:51,872
Every time at loops
834
00:41:52,384 --> 00:41:56,735
So when we tried out I'm going to show the playmaker window just so you can see it looping
835
00:41:56,991 --> 00:41:58,783
Take maybe understand the principle behind
836
00:41:59,295 --> 00:42:03,135
Alright we're gonna play and see if this robot is searching with his spotlight
837
00:42:06,975 --> 00:42:07,487
Parkour
838
00:42:09,535 --> 00:42:11,327
Alright so waiting waiting
839
00:42:12,351 --> 00:42:13,375
It moved
840
00:42:13,631 --> 00:42:16,191
Ok he moved like a can of the light to the left
841
00:42:16,447 --> 00:42:17,471
Are we moved it again
842
00:42:19,775 --> 00:42:20,799
Is Northern and again
843
00:42:22,079 --> 00:42:22,591
This is cool
844
00:42:23,615 --> 00:42:26,175
Is actually technically he's walking towards me
845
00:42:26,943 --> 00:42:33,087
But it doesn't look like he is doesn't like he just looks like he's wondering and searching For Someone Like Me
846
00:42:33,343 --> 00:42:33,855
On the run
847
00:42:34,111 --> 00:42:36,671
What is actually working towards me the whole time that's why
848
00:42:38,463 --> 00:42:41,023
That's what a simple artificial intelligence is doing
849
00:42:41,791 --> 00:42:47,935
Random numbers of Cannock Ruby it's like he kinda knows where am I and it's like he's lighting up the tree
850
00:42:48,191 --> 00:42:48,703
When is looking around
851
00:42:49,727 --> 00:42:53,567
Let's see what happens now here something we need to fix so fire causes running
852
00:42:54,335 --> 00:42:56,127
But again my keys not that was luck
853
00:42:56,383 --> 00:42:58,687
He's like searching at me but why would he
854
00:42:59,199 --> 00:43:00,735
Why would he like pointers live
855
00:43:01,759 --> 00:43:03,039
That was like
856
00:43:03,807 --> 00:43:08,415
That was random numbers but he should be like locked on a fuse chasing me right
857
00:43:10,207 --> 00:43:11,999
Right now is like not doing that
858
00:43:12,511 --> 00:43:16,863
So I want the light to Locanda me if he sees me and he is running at me does that make sense
859
00:43:17,375 --> 00:43:18,655
That's the thing we got it
860
00:43:19,423 --> 00:43:24,543
That's pretty cool I think it's looking good I hope I hope your is looks good to remember if you just need to it that's ok
861
00:43:24,799 --> 00:43:26,847
Game development is a lot of iteration
862
00:43:27,359 --> 00:43:33,503
Ok alright we need to make global Events for Global transitions and that's because I want them to communicate but
863
00:43:33,759 --> 00:43:39,391
In the robot fsm says I'm chasing too just searching because the light needs to
864
00:43:39,647 --> 00:43:40,671
Reflect that right
865
00:43:41,183 --> 00:43:44,767
So let's go to events and type and I don't know
866
00:43:45,279 --> 00:43:48,351
What's a light search
867
00:43:49,631 --> 00:43:51,679
And then let's make another one is called live
868
00:43:51,935 --> 00:43:52,447
Lock
869
00:43:52,959 --> 00:43:57,055
On this global which means I can be seen by Everything
870
00:43:57,823 --> 00:43:59,103
Check Mark
871
00:43:59,359 --> 00:44:00,127
And that check my
872
00:44:00,895 --> 00:44:07,039
Alright now we're going to do a trick and is such a useful thing in playmaker Italy dance so don't worry if you don't
873
00:44:07,295 --> 00:44:08,063
Stena Treadaway
874
00:44:08,575 --> 00:44:09,855
We're going to right click here
875
00:44:10,623 --> 00:44:14,207
I want to go to a global transition and we're going to do lights search
876
00:44:14,975 --> 00:44:21,119
And basically this like I can call this transition from anywhere in the game and I will just automatically do it
877
00:44:21,375 --> 00:44:22,399
Scott Brown
878
00:44:22,655 --> 00:44:23,935
Start this loop
879
00:44:24,959 --> 00:44:30,335
It's kind of like I'll start it starts when you start the Game Lights searching it starts on when I call
880
00:44:30,847 --> 00:44:31,871
In another FF
881
00:44:33,663 --> 00:44:35,199
They're going to create another one
882
00:44:35,455 --> 00:44:39,295
Let's go to add global transition right here and when I do light
883
00:44:39,551 --> 00:44:43,135
On and this is when he's chasing us and I don't want the
884
00:44:43,391 --> 00:44:43,903
Skip to anime
885
00:44:44,671 --> 00:44:47,999
So we're just going to do that rotation tween actually
886
00:44:48,255 --> 00:44:50,815
Rotation I have it already right there
887
00:44:51,583 --> 00:44:57,727
And then I just want the local rotation to be 000 because that when it's set to that means it's just looking
888
00:44:57,983 --> 00:45:01,823
Play the head that someone who's right in front of them right
889
00:45:02,079 --> 00:45:03,615
I want to be linear
890
00:45:04,127 --> 00:45:08,223
When you're like I wanted to be a fancy animation and then the time want to be fast
891
00:45:08,735 --> 00:45:11,807
Adidas easier and then just locks onto your own
892
00:45:12,063 --> 00:45:12,575
The player
893
00:45:13,087 --> 00:45:15,903
See what happens if it gets too close to the humanoid robot
894
00:45:17,439 --> 00:45:19,999
And then we need to do a finish around just so I like it
895
00:45:20,511 --> 00:45:22,559
It's like waiting I don't know I had finished
896
00:45:22,815 --> 00:45:24,351
I need to adult right here finish
897
00:45:24,607 --> 00:45:26,655
Animal hoarding and control dragon
898
00:45:27,423 --> 00:45:29,215
And then we'd this actually can be empty
899
00:45:29,727 --> 00:45:31,775
It will feel like it's like a star
900
00:45:32,031 --> 00:45:35,359
But that's why we need the call light searching when we've escape the row
901
00:45:35,871 --> 00:45:37,407
So these two things will go
902
00:45:37,663 --> 00:45:38,175
Handforth
903
00:45:38,431 --> 00:45:41,247
And we'll keep our little little sister my little
904
00:45:42,271 --> 00:45:44,575
Our little visual script running normally
905
00:45:45,343 --> 00:45:47,647
So light searching like lockdown
906
00:45:47,903 --> 00:45:50,463
Let's go back to the top this is our robots
907
00:45:50,719 --> 00:45:51,743
The following the player
908
00:45:52,511 --> 00:45:53,279
So quick edit
909
00:45:54,047 --> 00:45:56,607
And now he's running after you
910
00:45:57,119 --> 00:45:59,423
Let's go to the bottom and got action browser
911
00:45:59,935 --> 00:46:01,727
I'm going to type in send
912
00:46:03,007 --> 00:46:06,847
This is such a useful action is it all the time sendevent
913
00:46:07,615 --> 00:46:09,407
In the event targets not itself
914
00:46:09,663 --> 00:46:11,455
It's the other it's another game on
915
00:46:12,223 --> 00:46:14,015
That you sauna that's the same thing
916
00:46:14,527 --> 00:46:15,807
We need to do our life
917
00:46:16,063 --> 00:46:18,879
Spotlight right here you can tell me who has the l
918
00:46:19,135 --> 00:46:21,951
Playmaker symbol next to it so we know that's the right one
919
00:46:22,719 --> 00:46:26,047
So spotlight then we want to send event remember to Global of
920
00:46:26,559 --> 00:46:29,119
And then we want to do light locked on
921
00:46:30,143 --> 00:46:33,215
He sees you and he is going to get you and you better run
922
00:46:33,727 --> 00:46:37,055
Alright we're sending the event like lockdown so it's
923
00:46:37,311 --> 00:46:41,407
Does the save time when you do this on the other stayed right here so let's go
924
00:46:41,663 --> 00:46:45,759
Copy selected actions go to walk in and searching for the bottom and
925
00:46:46,015 --> 00:46:48,063
Click paste actions after
926
00:46:48,831 --> 00:46:54,975
And then we'll do the same thing so instead of light locked on we're going to do like searching and this is when
927
00:46:55,231 --> 00:46:56,255
Robot is walking in
928
00:46:57,023 --> 00:47:02,143
So now they should communicate with each other and let's see if I like locks on when he starts running at us
929
00:47:05,983 --> 00:47:07,775
He's looking around and what happened
930
00:47:11,103 --> 00:47:11,871
Ardell lashes
931
00:47:12,383 --> 00:47:13,663
That's all freaky
932
00:47:14,175 --> 00:47:16,735
I want the right sound effects this could be very
933
00:47:17,247 --> 00:47:18,527
Now if you run away
934
00:47:18,783 --> 00:47:20,831
Can you look around you should like continue to start
935
00:47:21,855 --> 00:47:24,415
Right now we have like these enemies
936
00:47:24,671 --> 00:47:26,463
And you'll be able to see them from following the map
937
00:47:27,231 --> 00:47:33,119
I really want and I want us to be a horror game I need to make that clear I want us to be very tense
938
00:47:33,631 --> 00:47:38,239
Does that feeling I've been in a cold wintry forest and is someone is chasing after you
939
00:47:38,495 --> 00:47:41,055
And I guess that's why I wanted to be more
940
00:47:41,311 --> 00:47:44,639
Melancholy and dramatic than horrifying
941
00:47:45,151 --> 00:47:49,759
Can I think this will be a really cool game I think this will be really interesting people on all the way
942
00:47:50,271 --> 00:47:52,319
Find out more about this world pretty much
943
00:47:53,087 --> 00:47:54,367
Speaking of sounds
944
00:47:54,623 --> 00:47:57,183
I think the best thing to do is to Canal
945
00:47:57,439 --> 00:48:02,559
Creepy robotics static sounds that you know when the when the robots close
946
00:48:02,815 --> 00:48:03,327
Player
947
00:48:03,839 --> 00:48:05,119
So let's do that
948
00:48:06,399 --> 00:48:08,703
Let's go to free sound.com
949
00:48:08,959 --> 00:48:10,751
Actually found a couple that I like
950
00:48:11,007 --> 00:48:14,847
I just want to show you guys just so you know what you're getting into
951
00:48:15,103 --> 00:48:16,895
All I did was search for stat
952
00:48:17,151 --> 00:48:18,943
Switch and creepy static IP
953
00:48:19,967 --> 00:48:21,247
Might like to listen to on
954
00:48:23,807 --> 00:48:24,831
Scanner
955
00:48:25,855 --> 00:48:28,927
Not very dynamic I want another more organic I guess
956
00:48:29,183 --> 00:48:34,815
That's kinda cool actually
957
00:48:36,351 --> 00:48:41,471
That's a good contender I don't like that one it won't look very well I don't think because
958
00:48:41,983 --> 00:48:44,799
Very different the Beginning than it does that same kind of sound
959
00:48:45,055 --> 00:48:45,567
At the end
960
00:48:46,847 --> 00:48:51,455
And this one might be my favourite I just searched creepy static it's creative Commons zero
961
00:48:51,711 --> 00:48:52,479
That's perfect
962
00:48:57,599 --> 00:49:01,439
I think it will work I don't know what else did I do
963
00:49:01,951 --> 00:49:06,047
That's actually pretty
964
00:49:06,303 --> 00:49:08,095
That's the kind of sounds like
965
00:49:09,375 --> 00:49:12,191
I don't know it sounds like there's some voices in there
966
00:49:16,287 --> 00:49:17,055
This is hard
967
00:49:17,311 --> 00:49:18,591
I'm not sure which one to pick
968
00:49:20,383 --> 00:49:25,503
Actually I think that's wants to like we could increase the volume but I think it gets to consistent I wanted to be like
969
00:49:25,759 --> 00:49:28,831
Destroyed can of organic sounding like a weird alien
970
00:49:29,599 --> 00:49:32,927
I think this is what I want
971
00:49:33,183 --> 00:49:34,719
Ok I'm going to download this
972
00:49:34,975 --> 00:49:37,279
This is called radio static sound effect that
973
00:49:37,791 --> 00:49:40,351
And it's creative Commons zero so we don't have to
974
00:49:40,607 --> 00:49:43,935
Give credit if you don't want but it's probably a good thing to do thank you
975
00:49:44,191 --> 00:49:45,983
Sugary Borg appreciate it
976
00:49:48,799 --> 00:49:50,079
What's it download
977
00:49:51,103 --> 00:49:53,919
I'm just going to drag and drop it into my project
978
00:49:54,175 --> 00:49:55,455
I put it in scenes
979
00:49:56,223 --> 00:49:56,735
Give me that then
980
00:49:56,991 --> 00:49:59,295
Using I never find it on I put it on assets
981
00:50:00,831 --> 00:50:03,647
Setting the root folder which against not ideal
982
00:50:04,415 --> 00:50:06,719
That's how I get games done fast
983
00:50:07,231 --> 00:50:11,839
Alright what's Adam audiosource what's going to our enemy and good at composed
984
00:50:12,607 --> 00:50:14,911
Typing audio source
985
00:50:16,191 --> 00:50:16,959
Right here
986
00:50:17,215 --> 00:50:18,495
Alex dragon
987
00:50:19,007 --> 00:50:19,775
Creepy stuff
988
00:50:21,055 --> 00:50:22,335
Put it right there I must do it
989
00:50:22,591 --> 00:50:23,359
Play on the way
990
00:50:23,615 --> 00:50:25,151
We will always be plain
991
00:50:25,919 --> 00:50:28,223
I actually do want the volume high gloss
992
00:50:28,479 --> 00:50:32,575
But I don't want it to be loud and icy like right on top of you and I think that will make
993
00:50:34,111 --> 00:50:36,159
What's the max distance on hundred
994
00:50:36,671 --> 00:50:37,951
Usually I change
995
00:50:38,207 --> 00:50:41,791
The volume of two linear but I do I'm going to be really I'm going to be
996
00:50:42,047 --> 00:50:44,351
Saints until you like red on top of you
997
00:50:44,863 --> 00:50:46,143
And that will be put
998
00:50:46,399 --> 00:50:46,911
Creepy
999
00:50:47,167 --> 00:50:49,727
He'll be like oh man is so close is going to get me
1000
00:50:50,239 --> 00:50:53,311
A mixture of course or it says to die that's not what we
1001
00:50:53,567 --> 00:50:55,103
This is a 3D sound
1002
00:50:55,871 --> 00:50:58,175
Does this is a character in 3D
1003
00:50:58,943 --> 00:50:59,967
Who are doing music
1004
00:51:00,223 --> 00:51:00,991
Or something
1005
00:51:01,503 --> 00:51:02,527
But we wanted 3D
1006
00:51:03,295 --> 00:51:03,807
And I think
1007
00:51:04,319 --> 00:51:06,367
I think that's it let's just
1008
00:51:06,623 --> 00:51:07,135
Ok
1009
00:51:07,391 --> 00:51:10,463
What about that are sphere Collider for when you should run
1010
00:51:10,975 --> 00:51:14,047
And there's this big spirit here that are volume
1011
00:51:14,815 --> 00:51:15,839
You actually change the mass
1012
00:51:17,887 --> 00:51:19,167
Let's do one
1013
00:51:19,679 --> 00:51:20,703
How much should a baby
1014
00:51:21,215 --> 00:51:21,727
What to do to
1015
00:51:22,751 --> 00:51:23,263
I don't know
1016
00:51:24,287 --> 00:51:29,663
Because it is logarithmic so you're still be quiet even if you're really close I won't get really loud until you
1017
00:51:29,919 --> 00:51:31,199
Right next to one
1018
00:51:31,711 --> 00:51:33,503
When we try this out
1019
00:51:37,343 --> 00:51:38,367
And something
1020
00:51:40,671 --> 00:51:41,951
This is actually working pretty well
1021
00:51:45,279 --> 00:51:47,583
This creepy now.com it gets really close
1022
00:51:56,031 --> 00:51:58,335
That looks very well maybe off 6 later
1023
00:51:58,847 --> 00:51:59,871
The kind of stops
1024
00:52:01,151 --> 00:52:02,431
How does Connor repetitive
1025
00:52:03,711 --> 00:52:04,479
But it does work
1026
00:52:04,735 --> 00:52:05,503
We could get bye
1027
00:52:05,759 --> 00:52:07,039
Something I had a little more
1028
00:52:07,295 --> 00:52:10,367
Variation in the Sam file but for now I think
1029
00:52:10,623 --> 00:52:12,159
I might change it up later
1030
00:52:12,671 --> 00:52:15,743
But that's that's pretty cool I might make the max distance
1031
00:52:15,999 --> 00:52:17,279
A little larger
1032
00:52:20,351 --> 00:52:20,863
Nets
1033
00:52:21,887 --> 00:52:23,167
Here is the sphere
1034
00:52:25,215 --> 00:52:25,727
The best way to
1035
00:52:25,983 --> 00:52:26,751
What's the max distance
1036
00:52:29,055 --> 00:52:33,151
Ok we got some creepy sounds we got the light that locks onto you
1037
00:52:33,407 --> 00:52:35,199
What else do we need
1038
00:52:35,455 --> 00:52:37,503
This is actually that is working out pretty well
1039
00:52:38,527 --> 00:52:40,575
Even though he's always walking towards you
1040
00:52:40,831 --> 00:52:41,855
You don't really know
1041
00:52:42,111 --> 00:52:47,487
It's hard to tell and artificial intelligence that's all it is it's just all these little tricks
1042
00:52:47,743 --> 00:52:53,375
All these little if statements and Loops just to make it for you organic like it's a thinking machine
1043
00:52:53,631 --> 00:52:54,143
Pretty much
1044
00:52:54,655 --> 00:52:56,959
There's actually one more important thing we need to do
1045
00:52:57,215 --> 00:52:59,775
We need to make this enemy kill the player
1046
00:53:00,287 --> 00:53:03,615
And I want this to be a challenge slide in this
1047
00:53:03,871 --> 00:53:06,687
Probably be your most challenging challenge slider
1048
00:53:07,199 --> 00:53:11,039
And I don't want to give too much away because this could be a great learning experience
1049
00:53:11,295 --> 00:53:13,343
But I'm just going to give you this one hint
1050
00:53:13,599 --> 00:53:16,415
Are we need is basically a Trigger
1051
00:53:16,671 --> 00:53:18,719
A trigger Collider that does
1052
00:53:19,231 --> 00:53:20,767
Kill the player
1053
00:53:21,279 --> 00:53:26,399
But I don't want to I don't want to make you do do it my way I want you to really thick
1054
00:53:27,167 --> 00:53:31,007
Critically evaluate what do you want this game over event to be
1055
00:53:31,263 --> 00:53:33,311
And I want you to figure it out using playmaker
1056
00:53:33,567 --> 00:53:37,151
But the one hand I'll give you is that you're going to need some kind of Trigger
1057
00:53:37,919 --> 00:53:40,991
Animal probably honestly it's only a small sugar
1058
00:53:41,247 --> 00:53:43,039
Does he want this trigger to be like
1059
00:53:43,295 --> 00:53:45,087
Stop the Masters right on top of
1060
00:53:45,599 --> 00:53:47,647
Then I want you to with playmaker
1061
00:53:47,903 --> 00:53:51,743
Create like it some type of game over or some type of love or restart
1062
00:53:52,255 --> 00:53:54,303
I may be at sounds to it
1063
00:53:56,351 --> 00:53:57,887
I want you to do this chance
1064
00:53:58,399 --> 00:54:01,471
And this will be the last thing we do for our enemy
1065
00:54:01,983 --> 00:54:07,359
This will stretch you I would say but you weren't so much digging and trying to make this work
1066
00:54:07,615 --> 00:54:09,407
Alright you can pause the video now
1067
00:54:11,199 --> 00:54:14,271
Hi guys had your challenging challenge Sligo
1068
00:54:15,295 --> 00:54:16,575
I hope it went ok
1069
00:54:16,831 --> 00:54:20,671
I did it a certain way and don't feel like you have to do it my way
1070
00:54:21,183 --> 00:54:25,791
But this was my logic I'm gonna walk you through why I decided to do what I did
1071
00:54:26,559 --> 00:54:28,351
And so basically the start off
1072
00:54:29,119 --> 00:54:31,935
I need to add a Collider so that if the
1073
00:54:32,191 --> 00:54:33,215
Enemy got closer
1074
00:54:33,471 --> 00:54:38,079
It would trigger an fsm or trigger a state change in the playmaker
1075
00:54:38,847 --> 00:54:42,943
I decided to make a totally separate game and record kill player right here
1076
00:54:43,455 --> 00:54:47,039
And again it is a child of the robots I just want to gain magic and
1077
00:54:47,295 --> 00:54:48,575
Create empty child
1078
00:54:49,087 --> 00:54:50,111
And I renamed
1079
00:54:50,623 --> 00:54:52,671
I created a small sphere Collider
1080
00:54:53,183 --> 00:54:55,231
In the Night Garden fsm
1081
00:54:55,487 --> 00:54:56,255
And I'll show you what I
1082
00:54:57,279 --> 00:54:58,047
Addison
1083
00:54:58,303 --> 00:55:00,351
This is all the logic behind it
1084
00:55:00,863 --> 00:55:06,751
Here's the trigger event that just says our food supplier in if it enters that sphere Collider right here
1085
00:55:07,007 --> 00:55:08,799
Then it will send a van
1086
00:55:09,055 --> 00:55:10,847
Until I did it will go here
1087
00:55:11,103 --> 00:55:12,639
This means you are dead
1088
00:55:12,895 --> 00:55:15,199
How to make it read to emphasise that fat
1089
00:55:15,711 --> 00:55:16,479
Are you dead
1090
00:55:16,735 --> 00:55:22,879
So basically I did was draw a full screen colour and so as long as the state is active it will be total
1091
00:55:23,391 --> 00:55:24,927
This is the action I chose
1092
00:55:25,183 --> 00:55:26,463
I found a sound effect
1093
00:55:26,719 --> 00:55:27,487
That I really like
1094
00:55:27,743 --> 00:55:30,815
Can I plaster right here at the bottom called audio source
1095
00:55:31,071 --> 00:55:33,631
And it has a weird name Neil in goblin
1096
00:55:33,887 --> 00:55:36,447
So I made it out of cc0 sound effects
1097
00:55:36,703 --> 00:55:37,727
This is what it sounds
1098
00:55:39,263 --> 00:55:45,407
I'm just too high quality soundtrack if I got body hitting the floor that that's all I wanted I wanted to be like this
1099
00:55:45,663 --> 00:55:46,943
Robot tackle
1100
00:55:47,199 --> 00:55:51,039
This disobedient citizen of his dystopian City pretty
1101
00:55:51,807 --> 00:55:53,087
So I downloaded that
1102
00:55:53,343 --> 00:55:57,695
And then I added it to our you source and I did audio play Right Here
1103
00:55:57,951 --> 00:56:02,303
And I just made the volume one and then I made the special planned to die
1104
00:56:02,559 --> 00:56:04,351
I don't want to make sure that you here
1105
00:56:04,607 --> 00:56:06,143
Completely so I get to the sound of
1106
00:56:06,911 --> 00:56:08,191
And then this is a quarter
1107
00:56:08,703 --> 00:56:10,239
I wanted to static
1108
00:56:10,495 --> 00:56:13,567
To stop I just wanted to be black and then you hear that sound
1109
00:56:14,079 --> 00:56:20,223
And I wanted to stop that static on the robot so I have an action here called enable behaviour
1110
00:56:20,479 --> 00:56:23,039
This is super useful it's pretty summer activate
1111
00:56:23,295 --> 00:56:24,063
Game on
1112
00:56:24,831 --> 00:56:28,159
Except that we can activate a certain behaviour on a guy
1113
00:56:29,183 --> 00:56:29,951
Sofa and stuff
1114
00:56:30,207 --> 00:56:31,743
I'm a robot I just
1115
00:56:31,999 --> 00:56:38,143
I don't want to delete everything because it would cause problems since the kill thing would have been disabled as well I would
1116
00:56:38,399 --> 00:56:39,167
Cause errors
1117
00:56:39,423 --> 00:56:40,959
I just wanted to sound it
1118
00:56:41,727 --> 00:56:43,775
So all I did was a giraffe
1119
00:56:44,543 --> 00:56:45,567
Let's go back to kill player
1120
00:56:46,079 --> 00:56:48,639
I dropped the game object of the robot in
1121
00:56:48,895 --> 00:56:53,503
You have a dropdown of that stuff use the animator control here that there is a playmaker fsm
1122
00:56:54,015 --> 00:56:57,343
Audio sources what I wanted disabled so I made sure to click that
1123
00:56:57,599 --> 00:56:59,903
Animator enable was unchecked
1124
00:57:03,231 --> 00:57:07,839
And then I just wanted to be a black screen going like the wind of the trees
1125
00:57:09,887 --> 00:57:12,959
I messed up clear nose like he screwed up and that is dead
1126
00:57:13,983 --> 00:57:18,847
And then I wanted to turn off the music I don't want the music playing with this be like pure black
1127
00:57:19,103 --> 00:57:20,639
And it's just kind of empty feeling
1128
00:57:20,895 --> 00:57:22,175
Set the music turns off there
1129
00:57:22,687 --> 00:57:24,479
And then after 5 seconds
1130
00:57:24,991 --> 00:57:25,759
It restarts the
1131
00:57:26,015 --> 00:57:28,319
And that's the action I use as just restart level
1132
00:57:29,087 --> 00:57:33,183
So that's pretty much it should we try it out and I'll show you how it works
1133
00:57:37,535 --> 00:57:38,559
Is looking around
1134
00:57:40,095 --> 00:57:41,119
I can hear the static
1135
00:57:42,399 --> 00:57:44,703
Closer
1136
00:57:51,871 --> 00:57:52,639
Should we start
1137
00:57:55,199 --> 00:58:00,063
That is my game over screen so if he gets you it is you will lose your progress
1138
00:58:01,087 --> 00:58:04,415
And that's not very funny but honestly he's pretty easy to OutRun
1139
00:58:04,671 --> 00:58:06,719
I don't want this to be hard game
1140
00:58:07,231 --> 00:58:12,607
I want this just to be tense and I wanted to people get lost in the story and I want people to be kinda surprised
1141
00:58:12,863 --> 00:58:16,447
When I like oh my oh my gosh it's something chasing me what is that thing
1142
00:58:16,959 --> 00:58:19,263
And then as I think the game progresses
1143
00:58:19,519 --> 00:58:22,079
Remember a game manager from the last video
1144
00:58:22,335 --> 00:58:23,103
Right here
1145
00:58:23,359 --> 00:58:27,711
As the game progresses I think I want to spawn more and more enemies
1146
00:58:28,223 --> 00:58:31,807
And then that will be part of that last day when we make final touches
1147
00:58:32,319 --> 00:58:37,183
But yeah I'm excited I want us to be gradual remember I think it's best to take a game design
1148
00:58:37,695 --> 00:58:40,767
As like like Anna like a roller coaster like it's going up
1149
00:58:41,023 --> 00:58:41,535
It's going
1150
00:58:41,791 --> 00:58:46,399
You wanted to be like this constant slope of anxiety and tension and storytelling
1151
00:58:46,655 --> 00:58:51,775
Until accommodate in a climax at the end and that's like emotional pay off of your game really
1152
00:58:52,031 --> 00:58:58,175
I think I think we have something good going on here will continue to spawn enemies right here and then for your home
1153
00:58:58,431 --> 00:58:58,943
Ok sign
1154
00:58:59,455 --> 00:59:00,735
Are you should have a script
1155
00:59:00,991 --> 00:59:04,831
And I just it just doesn't do anything crazy just maybe a beginning middle and end
1156
00:59:05,343 --> 00:59:06,623
I want you to voice
1157
00:59:06,879 --> 00:59:09,439
Accord and I and I don't want you to get freaked out by the
1158
00:59:09,695 --> 00:59:10,975
It doesn't have to be too scary
1159
00:59:11,487 --> 00:59:14,815
Maybe you have a friend maybe have a girlfriend or boyfriend
1160
00:59:15,071 --> 00:59:19,423
Maybe you just want to do it like how I did the first tree I did the voice acting evening
1161
00:59:19,679 --> 00:59:20,703
Can I edit my voice
1162
00:59:21,471 --> 00:59:25,055
But yeah I want you to do the voice recording and I want you to add
1163
00:59:25,311 --> 00:59:27,871
Using the game manager or however you want to
1164
00:59:28,383 --> 00:59:30,175
So that we can have a beginning middle and end
1165
00:59:30,431 --> 00:59:33,247
To our game just as like the emotional and storytelling payer
1166
00:59:34,015 --> 00:59:36,063
A homework assignment for tonight
1167
00:59:36,575 --> 00:59:41,695
And I'm excited to finish this game for tomorrow and I'll talk about all the finishing touches we can do
1168
00:59:41,951 --> 00:59:44,255
Really polish it and make it a really nice place
1169
00:59:44,767 --> 00:59:50,911
Alright thanks for watching and I will see you tomorrow
91993
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.