Hello, guys.
In this video, I want to talk about certain layers, how to use them and what they are need for.
All right.
So to explain my point, I'm going to create a couple of more squares and just like this one, I'll
I'll make it big.
Like that, and I'll make it something dark.
So let's say this should be a background and I'll go to graphics player idle and I'll take my first
sprite and drag it to the scene just like this.
And I'll name it as player.
And you see how my platform is set.
Now, just in case you want to make the same.
But don't worry, we're going to make platforms.
In one of the videos later.
We have entire section for platforms.
So it's just examples.
Now in general, we talk about basic stuff, something simple to make you feel comfortable in this environment.
So when you feel like, Oh, I know these buttons and I know these buttons, then we're going to begin
to make video game.
So now look, I have the platform, let me click my W to find tool.
Yeah, I have the platform, I have background and I have player, but for some reason my player is
behind the background and if I take my platform it's going to cover the player as well.
And I need to fix that somehow, right?
I need to control this first.
What we can do is change order in layer.
For example, I'll set player like to ten the higher number it is, the more priority it has and the
more like in front it will be.
And I'll set platform to five.
So now platform is in front of the background and player is in front of everything.
And let's say we had the coin here, I'll go to Sprite Circle and this is like coin, it is there but
it's not visible.
I want to make it visible.
I can make it in front of the background, but behind the player.
And I'm like, Oh, what was the number there for the background?
And it's kind of confusing, you know, like I'm already confused, but what if I had, let's say.
Hundreds of objects in the game.
Like if there is a background with five players and decoration and enemies and so on.
So for that purpose we can use certain layer.
So we go over here and click, add certain layer.
First will be background.
The lower number is, the more behind it will be.
Remember that.
Then we're going to make another one for platform.
Then another one for what is it?
Collectable collectible.
Then another one for enemy.
We're going to have enemy in this game later on.
And the last one, the most important for the player.
So let's select player.
That's cool.
Now it's very easy to arrange them.
Let's select all of them.
Change Order in layer to zero.
Then we go one by one.
Platform is a platform.
Background is a background.
Player is a player, and COIN is collectible.
Right.
Cool.
Now, no matter how many objects we have, we have them kind of sorted between each other and we know
what to use when.
Very easy stuff to do.
Very cool.
Good.
That was easy.
Let's go to next video.