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
There's one more thing that we have to do with the wiz
In that is
Animating so
Let's go ahead and open up our wizard
Scene
Let's go ahead and animation player
Let's move this to the fore
Child of The Wizard anime scene
Let's create a new animation by clicking the animation but
Let's call days
Ok I'm going to turn off
The visibility of the collision shape 2 Days by
This
Invisibility button next to the collision
2D at the route
And then
The herb box component as well
Just so we can see what
Ok so let's
First start bye
Clicking the root node
And scrolling down until we see the transform region in let's go ahead and keep rain all of
Is supposition
Rotation
And scale
What do we want the wizard to look like
When he is a war
Subtitled by online-courses.club We compress knowledge for you!
I'm thinking something
Like a slide is going to look really good
So let's make the animation length
.4
And then let's use this later in the bottom right
2
Zoom in just a Lil
And I'm going to change my Snaps to
05
Right here in there
Xbox
So now I'm scrubbing
I'll go and increments of pile 5
For the rotation I think what I want to do
I want to start it off
What's a -10
Summer nights like this first keyframe
And then type in -10
And actually I think I'm going to do instead of I'll start it off at 0
Then appoint
One I'm going to insert the key and make that -10
And then what we're going to do is working
Roundabout here
Squid
And more
Forward
So let's
Add the skill at in Surrey Quay that one
So we're gonna
Keep it at 1 scale
Add .1 seconds and then we will
Squish over .2 seconds so at the point to market add another key
For the scale
And let's change
This
22
And the 1.5
And
Point
8
And again on click this link I can't if you don't want to
To be linked
Ok perfect so I think
Now we just need to
Rotate
The wizard forward and scale him
So appoint 3 I'm going to insert key on the rotation
And I'm going to change
This rotation value to parse
15
And plays
Ok so we're going out there's a couple of improvements that were gonna make
And then for the scale at
Three I'm going into the key there
One click the link icon here
And then
Do something like .9 in the X and 1.1 in the Y
Ok now let's turn on looping here
So let's run animation
At the far right here
And then change all the interpolation mode
2
Cubic
Ok so that's looking pretty good I think for this rotation
Keyframe right here .1 seconds
Will it change the easing so that something like
And I might even make this more extreme like 3
Ok awesome and then
For the scale here
So the scale keyframe at 0.2
Will do the same I'm going to make the evening about 2
Ok and then for this rotation keyframe the first one I'm going to change that easing to something like 1.7 ish
Alright so that's looking pretty DC
I'm gonna turn this to auto place I'm going to select auto play and load right here
Anna let's go ahead and Run the game not a problem is that
We're not going to see
The wizard
Spawning immediately so I'm going to go to my main
I'm going to open up my enemy manager here
And what I'm going to do is I am going to say
Change this Arena difficulty line down here to say equals equals 1
So that the wizard will start spawning after 5 sec
So we can see what
The animation
So let's just wait for a few seconds here
And that's actually not working in because this is I made a slight mistake here but it will be a good opportunity to
Well you had a fix animation so
What I accidentally did is
Made this animation play
Animate the wizard enemy
Route now instead of the Sprite 2D
Which is what I actually wanted to enemy
Install fortunately this is a very easy fix so you can go your walk animation here
And see answers wizard anime
Now if you did it correct
Leave it as it is if this is in a meeting the Sprite then that's good but if you did what I did and have the Wizard
Then what you can do as you can I take double clicking here
And you can edit these keys and what does represent
Is there a notepad
And then colon
And then the property name and that's how it is
So
This no Pat is a dot which simply means the root node of the scene
But
I can do something like this I can type
Visual
Slash
Sprite
And see I've manually corrected that and now
That track 4 position is animating the star
Today
So I can do the same thing for
For both of us I can write visual
Slash
Right to die
Copy that and hit enter
And I'm going to do the same
Now I've transferred all those animations
Track
To the spray
And I also have to fix my recent animation
So I'm going to go ahead and
Do that
Double click
Replace the dart
Visual /
And
All that is good
Ok so everything should be fine so let's go ahead and Run the game now and verify that animation is work
Alright I actually really like that animation I think that looks good
Now one thing that we can do that out of bunch of Personality to have the Wizard of Oz
Is we can actually
Change when the wizard is moving
So that it looks a little bit good
So what's going to do that
So right now our wizard and this is what I was talking about you want to maintain separate
Enemies that we can customise the behaviour so this wizard
Is curlers moving at a constant rate
Watch this what I'm going to do something to create
A new variable called is underscore moving in my wizards
All said that to false which is a boolean value
Then what I'm going to do
Is I'm going to create a new function down here called
Is moving
And then we're going to say
Moving
And I've just marked with Bull
Never going to say is moving in
Go to movie
Now watch what we can do
I can write this
F
Is moving
I'm going to indent this line this Excel
Two player live
Underneath that so accelerator player is only going to be called
When is moving is true
And I want to stop the wizard when is move
So we actually need to open up our Velocity
Component scripts I'm going to say
Control shift
Velocity component
How many clicked the Script I can't open it
If it's not already open yet
And we need to
Create a d salary
So let's go out and do
Funk
Diesel
Open that blow the accelerator
We can just call
Accelerate in Direction
Vector2
So what this is going to do
Is this is going to say
Call accelerating Direction with this Direction which is Which is 0
Then our desired velocity is going to end up being 0 because Direction X max speed is going to be 0
And then our Velocity will
Towards zero
So we can call decelerate now in our wizard so I'm going to open up the wizard script
Weird
Do an else statement right here
So if it is moving
Accelareader player
Velocity component
Decelerate
Just like so
And we're always going to come move why because we want to apply the movement represented by the valar
Regardless of how where accelerating or decelerating
You basically always want to be moving or calling move on the character body to die
Even when the movie
The velocity might be zero
Ok
So we Gotta is moving now I need to set this and the interesting thing we can do
Is I'm going to go back to my wizard anime scene
And click the 2D
At the top I'm going to select the animation player
And select My Walk animation
In here we can Audi call method
I'm going to add a comment
Select the route
Node of Wizard and
And then in here what we can do is
Put a keyframe at point once
And we're going to call set
Is move
So that script method
That we define
Headset is moving doubleclick that
And if you click on that key fob
You can actually sit the value here so under the section 50
We can turn this to on
So set is moving true
And then
We can
Turn the is moving off right here side 3 seconds or insert and
Thank you with that same set is moving script method
And that defaults to false so will be good
So now what's happening
There is a point to secondary
In which the wizard can move
And then
2.2 secondaries Norwich that wizard will Beast
So now if we play the game
But we should see is that the wizard is actually going to shuffle along the ground
Hair like a start stop
Fashion
And we're not really seeing that quite apparently
So I'm going to change in the velocity component the acceleration
Subtitled by online-courses.club We compress knowledge for you!
Winter and acceleration up to 10
Right here
We probably need to go little bit higher so let's do 20 and acceleration
Anthony animationplayer I'm also going to change this a little
So I'm going to move this set is moving
.05 seconds over
So that is
In the animation
I think I should be going to let's go and run
So again the acceleration for the wizards
Play component it's
20
And then
Ok so you can say at the wizard
He's like starting and stopping at right
There is a little bit more abrupt
How is moving and I think that
Bike gives a lot of character to
And
I think it's really cool
I think that as a lot of life to the game as some
Differentiation between the enemy movement
And just generally
Pretty goofy which aisle
Alright so the wizard is animated let's go back to a main scene
And click into the enemy manager
I just make sure to set out
Arena difficulty
Back to see
Right
And The Wizard is now
Done
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.