Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Before we add any new content to our game we should address some problems that we have
With RC
In the problems that I'm talking about by the fact that ability
Vials and enum
Are all just kind of Ronin
Is children under 9
This may note
And well that someone works we have a number of Prague
My instance and enum
For demonstrate
Purposes
You can see them
The enemy or render on top of the player always
Because it's lower on the tree
Then the player
And this is not exactly correct
It will look like the players always behind the enemy even when the enemy
Is supposed to be behind the player
And that will also be a problem for hr
Abilities so if I take a sort of building
This will just render on top of everything that is below it in the sea
And so we can have a situation which enemies are obscuring
The ability
That's not good because we want to be able to see what our abilities are doing
Subtitled by online-courses.club We compress knowledge for you!
And so we can resolve
Problem
By creating a couple of new now
So I'm going to go ahead and create a node 2D under me
Something hit control 8 open up the add no dialogue
Recall this one entities
And then I'm going to create another note to
And I'm going to call this one
And foreground would just be used for anything that we want to render above the
I'm going to take my player in drag
Into the
Make sure you've got this order with a tilemap
Is first an any entities in it
So get the player as a child of
Now watch me whip
I'm going to go to the inspector here in the entities layer
And I'm going to go to the ordering sex
And turn on Wi-Fi
Enabled
So where do I sort in a
I can
For demonstration purposes you don't have to do this
Instance of basic enemy Hero
And I can drag this
And you can see that does not rendering behind the player despite the fact that it is
Lower than the player on the team
If I move it past the players by position
It now renders on top of the
My sword does it controls the drawer or
I've known to
Based on
Why
Position
So when
An entity's y position
Is greater than others it will render
On top of
This gives the impression of Dad
When were
Working with 2D top-down games
Which we
I'm going to delete that anime
And so we want to put entities and vials on this level we need to know how to access
Is this later and what we're going to do is just simply going to
A group against all this is later I'm gonna go click on
And then go to the new tab
Stencil
Groups
And then I'm just going to add this to
The entities group
And I'm actually going to call this entities layer
Just to be extra sure that this is referring to a notice single note
And not to a group of
That can be a little
Recall that entities layer
In the group there
And then we're going to go into our enemy manage
Open up
Script and in here what we're doing is her simply just adding the child to the main
By getting the parent in an element
What we're going to do instead is ringing to say
Bar Anthony's lair
Is equal to
Tree
Get
First node in
And then we need to use that name their entities layer
Now we could do some defensive programming here
And you're checked to make sure that this entity's layer exist
I'm not going to do that in this instance because
I feel pretty confident that entities layer is going to always eggs
In the context
Having an enemy man
We're gonna keep this entities later here
An hour just going to replace this get parent
Entered
Leia
And I just got a spell that correctly ok
Fabulous and diesel Ireland
And then let's hit ctrl shift l and search for the vile
Component in open that
And I'm here again we're just kind
Spawning
Under the owners parent which again is the main theme
So we're going
Spine the Vial instead
To the edge
So I'm going to pierce that line that we copied
Entities layer Eagles get 3D
Get first node in group
And then just replace this line owner get parent with
Entities
In the final one we need to do is we need to handle the Sword of
Something to go back to my main
I'm going to click on the foreground
Then I'm going to go to now
Dislike groups again
And I'm going to add it to
Foreground
Leia
And an addict
Ok then I'm going to open the sword ability controller so again control shift order quick open
The Sword of bilty controller
And in here again
We are just adding the sword ability to the player
Instead what we want to do as we want to grab the foreground layer so we're going to save our
Foreground layer
Putting a straight under
Play The instantiate Light
For the sort of
Is it good to get tree
Dart get first noting
4 g
Leia
And then we can replace this player get parent
Foreground layer
Ok now let's go ahead and Run the game
And make sure everything is working as we
Ok and we can pause the game
By clicking the pause
1 appear in the towbar
We can look at the remote scenery
And see if everything's were
So we should see no free-floating nodes in our remote scene three here
And if we open up the end diesel Air Wick
Steve Isles and enemies as well
What's the player
And in the foreground if you passed it while sword ability was happy
You should see a sword
So now we got a match
Clean
Scene
And we've got proper why sorting and place so everything
Ok so I'm going to unpause it and just verify that the wise sorting is
Yes you can see as you run into enemies
It makes a lot more sense in terms of the
Draw order of
Every
So now we've got a proper scene structure in place
For building Moreton
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.