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
Indonesian
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
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
Alright let's not forget about the door here we need to have that
Play open right now currently just destroyed so I want to do is jump into the locked door here
And an actually going to copy
The parent objects I'm going to pierce it inside of itself and no that's weird it's hold on
I want to remove everything except for the gates script and the polygon Collider
I'm going to keep the polygon Collider
I'm going to keep the gate script
Any good on here and reading this to graphic
Now on the graphic we don't need the polygon Collider or the gate script all we want is
Just the Sprite renderer ok
M20 out
Everything in the graphic here
Ok so why did I just do all that well if you take a look here we're going to have the locked door
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
And this is just going to be our polygon Collider in our Gate script when we open the gate
I don't want to move
The parent object
Why is that
Because I then I can plays Gates all throughout the world in various positions because the moment we hit play
He's going to move to -2828.93
N26
18
Because look watch this
What's a were currently at this position when the player opens the gate
Watch what happens with position as it moves
The white positions changing
Remember you can't separate out the X and Y transform positions in animation linked right so far
Moving my position
What is going to move this to -28.93 which is right here
So everytime I open the door no matter where is located it's going to snap into place and negative 28.9
In the world coordinates we don't want that
Ok so that's why we're going to enemy only the graphic not the door
Just got home create a new animation we can actually create the animation on the locked door
The only control the child
So let's do it that way
How many create a new animation
Put inside of a folder called other
M&M doors
1 in a mission called door
Closed
And then create a new animation and we call this door
Open
So I have two animations here
Stop for the door open innovation
I'm going to curly have the graphic as just 0 right
30 years ago want to create a keyframe really quick just drag
A position on it
Just anywhere and then just go back to zero and that will tell you now be ok
We're going to be 8000
Ok
Navigate to open this app in a minute open it up pretty slowly I'm gonna wait a little bit so that we can play a key sound
So and unlock sound will happen here and then other open
Over the course of May by about 2 seconds
My dad
Just like that
The Sprite renderer disable
Just like that
Who's going to be our door open innovation for now
And the
Next thing I want to do is make sure we save out there prefab and then we're going to the animator Here and Now
You can see we have a new animator associated with the locked door
So we have door opened and door closed
So your clothes that's good it should be orange that's going to be out
Default position and then I'm going to make a transition to door open
Ok
Now this transition will require a parameter so try and get really quick without parameter will be
I think we can do a trigger if you wanted to but actually wanted to be a bullying so that if we have a saving system in a game
By the way you're gonna want to see the system eventually if the game is saved we're gonna want to meet Lee go to door open if
Open the door before ok so make a bullying
Enniskillen by car
Opened
Currently set to false
If we set the condition to open = True
When I can have an exact time
I'm going to have no transition duration
0 and then just make sure you double click on door opened in Settle loop time
We don't want it to loop opened over and over and over again right we wanted to have him once
We also want to make a transition back door closed and we can actually have this anime without even really having it
What I mean is
There's no keyframes associated with the closed door
Which I can show you right here we got a closure
There's no keyframes associated with it the only one working I really need
Is just that 0-position rate
To make sure we do that
Just at the zero position to door closer we only have one keyframe here but if we are animated here
Transitions we can actually start the transition duration
Till like 2 seconds right so it's going to slowly enemy from open to closed
We don't want an exit time
For the transition between door open the door closed
Indoor closed now loop time
Alright so got that working just fine
And also just said the list of
Conditions on going from open the clothes do you want to see if open = boss
N1 final thing guys
The door opened animation
It Moves the spray right
It doesn't move the polygon Collider
So what I want to do with the polygon Collider is the reason I had it on the top
Parrot here
Is because I wanna wait till to fully open before the players allowed to enter you see there's a lot in video games
A controller player even though there's a gay opening like that
Really want the player to be able to get stuck
As it's opening right so want to wait completely till it opened and then
Remove the polygon Collider to go to the record button here
I just disable the polygon Collider at 2 seconds
Must be voice keyframes over in and save it
And it was that mean it means that on your clothes we want to make sure that
What's a the door actually you know eventually closes for some reason it's so we wanted to lock again
I just want to make sure
Enable polygon Collider to be sure when it's closed when is close the graphic position is set to zero in
So when it's locked the polygon Collider is enabled
When is open we disable the polygon Collider at 2 seconds
And we are just move the graphic position and also disable the sprite renderer
Ok
I'm going to go ahead and open up the gate script here
An alarm you play against talking to do here instead of destroying the game object I actually just going to
Set that bullying
In the animator
To Trill somebody new serializefield
Going to be a private
Animator then we're going to go to the cinema with a lowercase a alright so instead of Destroy or just going to say
Animator
Opened
Is that a true
Now remember guys we just made a mistake here
We always want to be careful with our parameters
Should the primer be uppercase or lowercase
Let's take a look at animated to be sure
Look I primer is uppercase
It really needs to be lowercase
Because
This is basically a variable in variable should always be lowercase functions and classes are replicated
These parameters which are basically variables can be lowercase
So just be sure to change this to lowercase as well and the Script
Say that out
Let's test it see how it works
Play
There goes
Alright
The Lack Gate works just fine
When we got here just add
Quick sound effect to both of these go ahead and
Jump into a locked door prefab
And all I got to do to add some sounds is number and M functions
Just add that script
Whenever you're adding me in a major function scripture just going to add it to the same
Gameobject that contains the animator
An hour what I can do is just go ahead and
Create two sound effects for the opening of the door
We're going to play sad one and I'm going to play sound too
Noticed at one year that sound one which is going to be the key being used sound
Hennessey sound 2
Play Sounds to let me go
And now I can just go head in add my sounds to the innovative functions over here
Go ahead in
Find some sounds like
I think we can just do a pass or a positive sound us
Hamilton
Interaction sound
That's canical
Do that
No you just add
To the size of set size to 1 and so it's only one sound here
It was at 6 I think it was 6
No I can't remember that one 10
Turn it down two
Is it going to be
Let's see hear another call sound
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Let's see if we can find something
That's chemical
Oh that's great I love that one that you that
Set the size 21 and without that mechanical noise which one was it I forgot again
That's why I chose
Yeah that's great
Alright so there's two sounds going to play
When I open up again
Elise hopefully test it and see how it looks
Alright mate I don't get her in your own game
I'm getting good at this game
Perfect ok
So
We got the Gate opening
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.