1
00:00:00,000 --> 00:00:00,000
Hello, guys.

2
00:00:00,000 --> 00:00:05,000
In this video, I want to talk about certain layers, how to use them and what they are need for.

3
00:00:05,000 --> 00:00:05,000
All right.

4
00:00:05,000 --> 00:00:13,000
So to explain my point, I'm going to create a couple of more squares and just like this one, I'll

5
00:00:13,000 --> 00:00:14,000
I'll make it big.

6
00:00:16,000 --> 00:00:20,000
Like that, and I'll make it something dark.

7
00:00:21,000 --> 00:00:30,000
So let's say this should be a background and I'll go to graphics player idle and I'll take my first

8
00:00:30,000 --> 00:00:33,000
sprite and drag it to the scene just like this.

9
00:00:33,000 --> 00:00:35,000
And I'll name it as player.

10
00:00:36,000 --> 00:00:39,000
And you see how my platform is set.

11
00:00:39,000 --> 00:00:40,000
Now, just in case you want to make the same.

12
00:00:40,000 --> 00:00:44,000
But don't worry, we're going to make platforms.

13
00:00:44,000 --> 00:00:45,000
In one of the videos later.

14
00:00:45,000 --> 00:00:47,000
We have entire section for platforms.

15
00:00:47,000 --> 00:00:49,000
So it's just examples.

16
00:00:49,000 --> 00:00:56,000
Now in general, we talk about basic stuff, something simple to make you feel comfortable in this environment.

17
00:00:56,000 --> 00:01:01,000
So when you feel like, Oh, I know these buttons and I know these buttons, then we're going to begin

18
00:01:01,000 --> 00:01:02,000
to make video game.

19
00:01:02,000 --> 00:01:07,000
So now look, I have the platform, let me click my W to find tool.

20
00:01:07,000 --> 00:01:15,000
Yeah, I have the platform, I have background and I have player, but for some reason my player is

21
00:01:15,000 --> 00:01:20,000
behind the background and if I take my platform it's going to cover the player as well.

22
00:01:20,000 --> 00:01:22,000
And I need to fix that somehow, right?

23
00:01:22,000 --> 00:01:24,000
I need to control this first.

24
00:01:24,000 --> 00:01:26,000
What we can do is change order in layer.

25
00:01:26,000 --> 00:01:33,000
For example, I'll set player like to ten the higher number it is, the more priority it has and the

26
00:01:33,000 --> 00:01:35,000
more like in front it will be.

27
00:01:35,000 --> 00:01:37,000
And I'll set platform to five.

28
00:01:37,000 --> 00:01:42,000
So now platform is in front of the background and player is in front of everything.

29
00:01:42,000 --> 00:01:49,000
And let's say we had the coin here, I'll go to Sprite Circle and this is like coin, it is there but

30
00:01:49,000 --> 00:01:50,000
it's not visible.

31
00:01:50,000 --> 00:01:51,000
I want to make it visible.

32
00:01:51,000 --> 00:01:56,000
I can make it in front of the background, but behind the player.

33
00:01:56,000 --> 00:01:59,000
And I'm like, Oh, what was the number there for the background?

34
00:01:59,000 --> 00:02:04,000
And it's kind of confusing, you know, like I'm already confused, but what if I had, let's say.

35
00:02:07,000 --> 00:02:09,000
Hundreds of objects in the game.

36
00:02:09,000 --> 00:02:16,000
Like if there is a background with five players and decoration and enemies and so on.

37
00:02:16,000 --> 00:02:19,000
So for that purpose we can use certain layer.

38
00:02:19,000 --> 00:02:22,000
So we go over here and click, add certain layer.

39
00:02:24,000 --> 00:02:26,000
First will be background.

40
00:02:26,000 --> 00:02:29,000
The lower number is, the more behind it will be.

41
00:02:29,000 --> 00:02:30,000
Remember that.

42
00:02:30,000 --> 00:02:34,000
Then we're going to make another one for platform.

43
00:02:34,000 --> 00:02:38,000
Then another one for what is it?

44
00:02:38,000 --> 00:02:40,000
Collectable collectible.

45
00:02:41,000 --> 00:02:43,000
Then another one for enemy.

46
00:02:43,000 --> 00:02:45,000
We're going to have enemy in this game later on.

47
00:02:46,000 --> 00:02:49,000
And the last one, the most important for the player.

48
00:02:49,000 --> 00:02:51,000
So let's select player.

49
00:02:52,000 --> 00:02:53,000
That's cool.

50
00:02:54,000 --> 00:02:56,000
Now it's very easy to arrange them.

51
00:02:56,000 --> 00:02:57,000
Let's select all of them.

52
00:02:57,000 --> 00:03:00,000
Change Order in layer to zero.

53
00:03:01,000 --> 00:03:02,000
Then we go one by one.

54
00:03:02,000 --> 00:03:04,000
Platform is a platform.

55
00:03:05,000 --> 00:03:07,000
Background is a background.

56
00:03:07,000 --> 00:03:12,000
Player is a player, and COIN is collectible.

57
00:03:12,000 --> 00:03:13,000
Right.

58
00:03:13,000 --> 00:03:13,000
Cool.

59
00:03:13,000 --> 00:03:20,000
Now, no matter how many objects we have, we have them kind of sorted between each other and we know

60
00:03:20,000 --> 00:03:22,000
what to use when.

61
00:03:22,000 --> 00:03:23,000
Very easy stuff to do.

62
00:03:23,000 --> 00:03:24,000
Very cool.

63
00:03:25,000 --> 00:03:26,000
Good.

64
00:03:26,000 --> 00:03:27,000
That was easy.

65
00:03:27,000 --> 00:03:28,000
Let's go to next video.

